RangeValidator.Type Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om