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)

static member FormatPropertyForClientValidation : 
        property:string -> string

Parameters

property
Type: System.String

The property.

Return Value

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