ConfigurationEnumValue 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在 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 |
取得組態列舉屬性的值。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應