ConfigurationEnumValueCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示組態列舉值的集合。
public ref class ConfigurationEnumValueCollection sealed : System::Collections::Generic::IEnumerable<Microsoft::Web::Administration::ConfigurationEnumValue ^>, System::Collections::ICollection
public sealed class ConfigurationEnumValueCollection : System.Collections.Generic.IEnumerable<Microsoft.Web.Administration.ConfigurationEnumValue>, System.Collections.ICollection
type ConfigurationEnumValueCollection = class
interface ICollection
interface seq<ConfigurationEnumValue>
interface IEnumerable
Public NotInheritable Class ConfigurationEnumValueCollection
Implements ICollection, IEnumerable(Of ConfigurationEnumValue)
- 繼承
-
ConfigurationEnumValueCollection
- 實作
備註
組態列舉值是 IIS 7 組態系統中的屬性,會根據已接受的架構定義值清單進行驗證。 例如,組 logonMethod
態區段的 <system.webServer/security/authentication/basicAuthentication>
屬性包含架構所定義的 「Interactive」、「Batch」、「Network」 和 「ClearText」 的列舉值。 ConfigurationEnumValueCollection物件可以包含這類值的零個或多個實例。
屬性
Count |
取得目前集合中的組態列舉值數目 |
Item[Int32] |
取得集合中指定索引處的組態列舉值。 |
Item[String] |
取得目前集合中具有指定名稱的組態列舉值。 |
方法
GetEnumerator() |
傳回泛型列舉值,逐一查看組態子專案的集合。 |
GetName(Int64) |
取得集合中具有指定值之第一個組態列舉值的名稱。 |
明確介面實作
ICollection.CopyTo(Array, Int32) |
將集合複製到陣列。 |
ICollection.IsSynchronized |
表示組態列舉值的集合。 |
ICollection.SyncRoot |
表示組態列舉值的集合。 |
IEnumerable.GetEnumerator() |
傳回逐一查看集合的列舉值。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應