共用方式為


ConfigurationElementCollectionBase<T> 類別

定義

提供組態專案強型別集合的抽象基類。

generic <typename T>
 where T : ConfigurationElementpublic ref class ConfigurationElementCollectionBase abstract : Microsoft::Web::Administration::ConfigurationElement, System::Collections::Generic::IEnumerable<T>, System::Collections::ICollection
public abstract class ConfigurationElementCollectionBase<T> : Microsoft.Web.Administration.ConfigurationElement, System.Collections.Generic.IEnumerable<T>, System.Collections.ICollection where T : ConfigurationElement
type ConfigurationElementCollectionBase<'T (requires 'T :> ConfigurationElement)> = class
    inherit ConfigurationElement
    interface ICollection
    interface seq<'T (requires 'T :> ConfigurationElement)>
    interface IEnumerable
Public MustInherit Class ConfigurationElementCollectionBase(Of T)
Inherits ConfigurationElement
Implements ICollection, IEnumerable(Of T)

類型參數

T
繼承
ConfigurationElementCollectionBase<T>
衍生
實作

備註

類別 ConfigurationElementCollectionBase<T> 可讓您設定和管理組態專案的集合。

您可以使用整數索引來存取此集合中的專案。 此集合中的索引是以零起始。

重要

此基類可供實作者更輕鬆地建立自訂群組態專案集合。 這個類別標示為抽象;因此,無法直接建立這個類別的實例。

建構函式

ConfigurationElementCollectionBase<T>()

初始化 ConfigurationElementCollectionBase<T> 類別的新的空執行個體。

屬性

AllowsAdd

取得值,指出專案名稱是否 add 定義在目前的集合架構中。

AllowsClear

取得值,指出專案名稱是否 clear 定義在目前的集合架構中。

AllowsRemove

取得值,指出專案名稱是否 remove 定義在目前的集合架構中。

Attributes

取得組態屬性集合,其中包含這個專案的屬性清單。

(繼承來源 ConfigurationElement)
ChildElements

取得目前專案的所有子專案。

(繼承來源 ConfigurationElement)
Count

取得集合中的項目數目。

ElementTagName

提供組態專案強型別集合的抽象基類。

(繼承來源 ConfigurationElement)
IsLocallyStored

取得值,指出組態專案是否儲存在特定組態檔中。

(繼承來源 ConfigurationElement)
Item[Int32]

取得位於指定索引處的組態專案。

Item[String]

取得或設定具有指定名稱的屬性。

(繼承來源 ConfigurationElement)
Methods

取得組態專案的方法集合。

(繼承來源 ConfigurationElement)
RawAttributes

提供組態專案強型別集合的抽象基類。

(繼承來源 ConfigurationElement)
Schema

取得描述組態專案集合的架構。

方法

Add(T)

將組態專案加入至目前集合的結尾。

AddAt(Int32, T)

將組態專案加入至指定索引處的目前集合。

Clear()

清除目前集合中的所有組態專案。

CreateElement()

建立目前集合的新子專案。

CreateElement(String)

使用指定的名稱建立新的子專案。

CreateNewElement(String)

使用指定的專案名稱建立新的專案。

Delete()

提供組態專案強型別集合的抽象基類。

(繼承來源 ConfigurationElement)
GetAttribute(String)

ConfigurationAttribute傳回 物件,表示要求的屬性。

(繼承來源 ConfigurationElement)
GetAttributeValue(String)

傳回指定之屬性的值。

(繼承來源 ConfigurationElement)
GetChildElement(String)

傳回目前組態專案下且具有指定名稱的子專案。

(繼承來源 ConfigurationElement)
GetChildElement(String, Type)

傳回目前組態專案下且具有指定名稱和類型的子專案。

(繼承來源 ConfigurationElement)
GetCollection()

傳回目前組態專案的預設集合。

(繼承來源 ConfigurationElement)
GetCollection(String)

傳回屬於目前組態專案的所有組態專案。

(繼承來源 ConfigurationElement)
GetCollection(String, Type)

傳回具有指定名稱和型別的組態專案,且位於目前的組態專案底下。

(繼承來源 ConfigurationElement)
GetCollection(Type)

傳回具有指定型別且位於目前組態專案下的組態專案。

(繼承來源 ConfigurationElement)
GetEnumerator()

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

GetMetadata(String)

從專案架構傳回中繼資料值。

(繼承來源 ConfigurationElement)
IndexOf(T)

決定集合中專案的索引。

Remove(T)

從集合中移除第一個出現的專案。

RemoveAt(Int32)

移除集合的指定索引處的項目。

SetAttributeValue(String, Object)

設定指定屬性的值。

(繼承來源 ConfigurationElement)
SetMetadata(String, Object)

從專案架構設定中繼資料值。

(繼承來源 ConfigurationElement)

明確介面實作

ICollection.CopyTo(Array, Int32)

從特定的陣列索引開始,將集合的項目複製到陣列。

ICollection.Count

提供組態專案強型別集合的抽象基類。

ICollection.IsSynchronized

提供組態專案強型別集合的抽象基類。

ICollection.SyncRoot

提供組態專案強型別集合的抽象基類。

IEnumerable.GetEnumerator()

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

適用於