This topic has not yet been rated - Rate this topic

ConfigurationEnumValue Class

IIS 7.0

Defines an attribute in the IIS 7 configuration system that validates against a list of accepted schema-defined values. 

System..::..Object
  Microsoft.Web.Administration..::..ConfigurationEnumValue

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
public sealed class ConfigurationEnumValue

The ConfigurationEnumValue type exposes the following members.

  Name Description
Public property Name Gets the name of the configuration enumeration value.
Public property Value Gets the value of the configuration enumeration attribute.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Top

A configuration enumeration value is an attribute in the IIS 7 configuration system that validates against a list of accepted values that are configured in the schema.

The following example schema defines a configuration enumeration value:

<sectionSchema name="system.webServer/security/authentication/basicAuthentication">
  <attribute name="enabled" type="bool" defaultValue="false" />
  <attribute name="realm" type="string" />
  <attribute name="defaultLogonDomain" type="string" />
  <attribute name="logonMethod" type="enum" defaultValue="ClearText">
    <enum name="Interactive" value="0" />
    <enum name="Batch" value="1" />
    <enum name="Network" value="2" />
    <enum name="ClearText" value="3" />
  </attribute>
</sectionSchema>

The following configuration value represents data stored in the configuration system for the <basicAuthentication> element defined above:

<basicAuthentication defaultLogonDomain="FABRIKAM" enabled="true" logonMethod="Cleartext" realm="FABRIKAM" />

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ