共用方式為


ConfigurationEnumValue.Name 屬性

定義

取得組態列舉值的名稱。

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

屬性值

組態列舉值的名稱。

備註

組態列舉值是 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" />  

適用於