ConfigurationAttributeSchema.ValidationType Property

IIS 7.0
 

Gets the type of validation that this attribute uses.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public string ValidationType { get; }

Property Value

Type: System.String

The type of validation. Valid values are " applicationPoolName", "integerRange", "nonEmptyString", "siteName", "timeSpanRange", and "trimWhiteSpaceString".

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.

Return to top
Show: