TypeConversionValidator.GetMessage Method
Gets the message representing a failed validation.
Namespace: Microsoft.Practices.EnterpriseLibrary.Validation.Validators
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
protected internal override string GetMessage(
Object objectToValidate,
string key
)
'Declaration
Protected Friend Overrides Function GetMessage (
objectToValidate As Object,
key As String
) As String
protected public:
virtual String^ GetMessage(
Object^ objectToValidate,
String^ key
) override
Parameters
- objectToValidate
Type: System.Object
The object for which validation was performed.
- key
Type: System.String
The key representing the value being validated for objectToValidate.
Return Value
Type: String
The message representing the validation failure.
See Also
TypeConversionValidator Members
Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace