ConfigurationEnumValue.Value Eigenschaft

Definition

Ruft den Wert des Konfigurationsaufzählungsattributs ab.

public:
 property long Value { long get(); };
public long Value { get; }
member this.Value : int64
Public ReadOnly Property Value As Long

Eigenschaftswert

Der Wert des Konfigurationsaufzählungsattributs.

Hinweise

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

Das folgende Beispielschema definiert einen Konfigurationsaufzählungswert:

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

Gilt für: