ParameterValidationResult Constructor (ParameterValidationResultCode, String, String)
Constructor to create a custom parameter validation result.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim code As ParameterValidationResultCode
Dim errorMessage As String
Dim errorParameter As String
Dim instance As New ParameterValidationResult(code, errorMessage, errorParameter)
Syntax
'Declaration
Public Sub New ( _
code As ParameterValidationResultCode, _
errorMessage As String, _
errorParameter As String _
)
public ParameterValidationResult (
ParameterValidationResultCode code,
string errorMessage,
string errorParameter
)
public:
ParameterValidationResult (
ParameterValidationResultCode code,
String^ errorMessage,
String^ errorParameter
)
public ParameterValidationResult (
ParameterValidationResultCode code,
String errorMessage,
String errorParameter
)
public function ParameterValidationResult (
code : ParameterValidationResultCode,
errorMessage : String,
errorParameter : String
)
Parameters
- code
Result code for parameter validation.
- errorMessage
Validation error message to be displayed to the user.
- errorParameter
Name of the parameter which has validation errors.
Platforms
Target Platforms
See Also
Reference
ParameterValidationResult Class
ParameterValidationResult Members
Microsoft.MetadirectoryServices Namespace