Intersoft ClientUI Documentation
SetError Method
See Also  Send Feedback
Intersoft.Client.UI.DocumentViewers Namespace > SqlReportParameterMetadata Class : SetError Method






propertyName
The name of the property or column to retrieve validation errors for.
errorMessage
The validation error message to display.
Set the validation error to the property or column supplied in the parameter.

Syntax

Visual Basic (Declaration) 
Public Sub SetError( _
   ByVal propertyName As String, _
   ByVal errorMessage As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As SqlReportParameterMetadata
Dim propertyName As String
Dim errorMessage As String
 
instance.SetError(propertyName, errorMessage)
C# 
public void SetError( 
   string propertyName,
   string errorMessage
)
Delphi 
public procedure SetError( 
    propertyName: String;
    errorMessage: String
); 
JScript 
public function SetError( 
   propertyName : String,
   errorMessage : String
);
Managed Extensions for C++ 
public: void SetError( 
   string* propertyName,
   string* errorMessage
) 
C++/CLI 
public:
void SetError( 
   String^ propertyName,
   String^ errorMessage
) 

Parameters

propertyName
The name of the property or column to retrieve validation errors for.
errorMessage
The validation error message to display.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.