Share via


CompareAttribute.FormatPropertyForClientValidation Method

Formats the property for client validation by prepending an asterisk (*) and a dot.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Shared Function FormatPropertyForClientValidation ( _
    property As String _
) As String
'Usage
Dim property As String
Dim returnValue As String

returnValue = CompareAttribute.FormatPropertyForClientValidation(property)
public static string FormatPropertyForClientValidation(
    string property
)
public:
static String^ FormatPropertyForClientValidation(
    String^ property
)
public static function FormatPropertyForClientValidation(
    property : String
) : String

Parameters

Return Value

Type: System.String
The string "*." is prepended to the property.

See Also

Reference

CompareAttribute Class

System.Web.Mvc Namespace