共用方式為


ConfigurationEnumValue 類別

定義

在 IIS 7 組態系統中定義屬性,根據接受的架構定義值清單進行驗證。

public ref class ConfigurationEnumValue sealed
public sealed class ConfigurationEnumValue
type ConfigurationEnumValue = class
Public NotInheritable Class ConfigurationEnumValue
繼承
ConfigurationEnumValue

備註

組態列舉值是 IIS 7 組態系統中的屬性,會根據架構中設定的已接受值清單進行驗證。

下列範例架構會定義組態列舉值:

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

下列組態值代表儲存在上述專案的組態系統中 <basicAuthentication> 的資料:

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

屬性

Name

取得組態列舉值的名稱。

Value

取得組態列舉屬性的值。

適用於