ConfigurationEnumValueCollection 類別

定義

表示組態列舉值的集合。

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

傳回逐一查看集合的列舉值。

適用於