CompareAttribute.FormatErrorMessage Method
Applies formatting to an error message based on the data field where the compare error occurred.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Overrides Function FormatErrorMessage ( _ name As String _ ) As String 'Usage Dim instance As CompareAttribute Dim name As String Dim returnValue As String returnValue = instance.FormatErrorMessage(name)
Parameters
- name
- Type: System.String
The name of the field that caused the validation failure.
Show: