ConfigurationAttributeSchema.ValidationType 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 the type of validation that this attribute uses.
public:
property System::String ^ ValidationType { System::String ^ get(); };
public string ValidationType { get; }
member this.ValidationType : string
Public ReadOnly Property ValidationType As String
Property Value
The type of validation. Valid values are " applicationPoolName", "integerRange", "nonEmptyString", "siteName", "timeSpanRange", and "trimWhiteSpaceString".
Remarks
Attribute validation is done at run time when IIS parses the configuration XML to get a configuration section, and when IIS calls the configuration API to get or set values. If validation fails, the desired operation also fails.
The following table lists the acceptable validation types and descriptions of their uses.
Validation type | Description |
---|---|
applicationPoolName | Validation fails if the application pool name contains invalid characters. |
integerRange | Validation fails if the value is outside the specified range, in integers. |
nonEmptyString | Validation fails if a string value is set. |
siteName | Validation fails if the site name contains invalid characters. |
timeSpanRange | Validation fails if the value is outside the specified range, in seconds. |
For more information about the format used by these validation types, see the ValidationParameter property.