Share via


ConfigurationEnumValue Klasse

Definition

Definiert ein Attribut im IIS 7-Konfigurationssystem, das anhand einer Liste akzeptierter schemadefinierter Werte überprüft wird.

public ref class ConfigurationEnumValue sealed
public sealed class ConfigurationEnumValue
type ConfigurationEnumValue = class
Public NotInheritable Class ConfigurationEnumValue
Vererbung
ConfigurationEnumValue

Hinweise

Ein Konfigurationsenumerationswert ist ein Attribut im IIS 7-Konfigurationssystem, das anhand einer Liste akzeptierter Werte überprüft, die im Schema konfiguriert sind.

Im folgenden Beispielschema wird ein Konfigurationsenumerationswert definiert:

<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>  

Der folgende Konfigurationswert stellt daten dar, die im Konfigurationssystem für das <basicAuthentication> oben definierte Element gespeichert sind:

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

Eigenschaften

Name

Ruft den Namen des Konfigurationsenumerationswerts ab.

Value

Ruft den Wert des Konfigurationsenumerationsattributs ab.

Gilt für: