Επεξεργασία

Κοινή χρήση μέσω


RangeValidator.Type Property

Definition

Gets or sets the data type that specifies how to interpret the values being compared. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 property System::Web::UI::WebControls::ValidationDataType Type { System::Web::UI::WebControls::ValidationDataType get(); void set(System::Web::UI::WebControls::ValidationDataType value); };
[System.ComponentModel.Bindable(false)]
public System.Web.UI.WebControls.ValidationDataType Type { get; set; }
[<System.ComponentModel.Bindable(false)>]
member this.Type : System.Web.UI.WebControls.ValidationDataType with get, set
Public Property Type As ValidationDataType

Property Value

The data type that specifies how to interpret the values being compared.

Attributes

Exceptions

The specified value is not one of the ValidationDataType values.

Remarks

The values are implicitly converted to the specified data type before the comparison is made. If the data conversion fails, data validation fails.

The following table contains the definitions of the ValidationDataType enumerations.

Enumerations Value Data Type
String 0 String
Integer 1 Integer
Double 2 Double
Date 3 DateTime
Currency 4 Currency

Applies to

See also