Validator.GetMessage Method
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Enterprise Library information can be found at the Enterprise Library site. |
Gets the message representing a failed validation.
Namespace: Microsoft.Practices.EnterpriseLibrary.Validation
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight.dll) Version: 5.0.505.0
Syntax
protected internal virtual string GetMessage(
Object objectToValidate,
string key
)
'Declaration
Protected Friend Overridable Function GetMessage ( _
objectToValidate As Object, _
key As String _
) As String
protected public:
virtual String^ GetMessage(
Object^ objectToValidate,
String^ key
)
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
The message representing the validation failure.
Remarks
The default validation message formatting provides the object to validate, the key and the tag.
Subclasses may provide additional formatting parameters.