BindingParameterCollection 類別

定義

代表繫結參數的集合,這些參數可儲存繫結項目建置處理站時所使用的資訊。Represents a collection of binding parameters that store information used by binding elements to build factories.

public ref class BindingParameterCollection : System::Collections::Generic::KeyedByTypeCollection<System::Object ^>
public class BindingParameterCollection : System.Collections.Generic.KeyedByTypeCollection<object>
type BindingParameterCollection = class
    inherit KeyedByTypeCollection<obj>
Public Class BindingParameterCollection
Inherits KeyedByTypeCollection(Of Object)
繼承
System.Collections.ObjectModel.KeyedCollection
BindingParameterCollection

備註

BindingParameterCollection 是物件的集合,當自訂繫結需要提供其他參數給另一個繫結時,會使用此集合。The BindingParameterCollection is a collection of objects that is used when a custom binding needs to provide additional parameters to another binding. 例如,SecurityBindingElement 會在 ServiceSecurityAuditBehavior 中尋找 BindingParameterCollection,以判斷安全性稽核設定。For example, the SecurityBindingElement looks for ServiceSecurityAuditBehavior in the BindingParameterCollection to determine Security auditing settings.

建構函式

BindingParameterCollection()

初始化 BindingParameterCollection 類別的新執行個體。Initializes a new instance of the BindingParameterCollection class.

屬性

Comparer

取得用來判斷集合中索引鍵是否相等的泛型等號比較子。Gets the generic equality comparer that is used to determine equality of keys in the collection.

(繼承來源 KeyedCollection<TKey,TItem>)
Count

取得 Collection<T> 中實際包含的項目數目。Gets the number of elements actually contained in the Collection<T>.

(繼承來源 Collection<T>)
Dictionary

取得 KeyedCollection<TKey,TItem> 的查閱字典。Gets the lookup dictionary of the KeyedCollection<TKey,TItem>.

(繼承來源 KeyedCollection<TKey,TItem>)
Item[Int32]

在指定的索引位置上取得或設定項目。Gets or sets the element at the specified index.

(繼承來源 Collection<T>)
Item[TKey]

取得具有指定索引鍵的項目。Gets the element with the specified key.

(繼承來源 KeyedCollection<TKey,TItem>)
Items

取得 IList<T> 周圍的 Collection<T> 包裝函式。Gets a IList<T> wrapper around the Collection<T>.

(繼承來源 Collection<T>)

方法

Add(T)

將物件加入至 Collection<T> 的末端。Adds an object to the end of the Collection<T>.

(繼承來源 Collection<T>)
ChangeItemKey(TItem, TKey)

變更查閱字典中與指定的項目相關的索引鍵。Changes the key associated with the specified element in the lookup dictionary.

(繼承來源 KeyedCollection<TKey,TItem>)
Clear()

移除 Collection<T> 中的所有項目。Removes all elements from the Collection<T>.

(繼承來源 Collection<T>)
ClearItems()

移除 KeyedCollection<TKey,TItem> 中的所有項目。Removes all elements from the KeyedCollection<TKey,TItem>.

(繼承來源 KeyedCollection<TKey,TItem>)
Contains(TKey)

判斷集合是否包含具有指定索引鍵的項目。Determines whether the collection contains an element with the specified key.

(繼承來源 KeyedCollection<TKey,TItem>)
CopyTo(T[], Int32)

從目標陣列的指定索引開始,將整個 Collection<T> 複製到相容的一維 ArrayCopies the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array.

(繼承來源 Collection<T>)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Find<T>()

傳回指定型別的集合中第一個項目。Returns the first item in the collection of a specified type.

(繼承來源 KeyedByTypeCollection<TItem>)
FindAll<T>()

傳回包含在 TKeyedByTypeCollection<TItem>中型別 {3} 的物件集合。Returns a collection of objects of type T that are contained in the KeyedByTypeCollection<TItem>.

(繼承來源 KeyedByTypeCollection<TItem>)
GetEnumerator()

傳回在 Collection<T> 中逐一查看的列舉值。Returns an enumerator that iterates through the Collection<T>.

(繼承來源 Collection<T>)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetKeyForItem(Object)
GetKeyForItem(TItem)

在衍生類別中實作時,從指定的項目擷取索引鍵。When implemented in a derived class, extracts the key from the specified element.

(繼承來源 KeyedCollection<TKey,TItem>)
GetKeyForItem(TItem)

取得集合中所包含之項目的型別。Gets the type of an item contained in the collection.

(繼承來源 KeyedByTypeCollection<TItem>)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IndexOf(T)

搜尋指定的物件,並傳回整個 Collection<T> 中第一個出現之以零為起始的索引。Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>.

(繼承來源 Collection<T>)
Insert(Int32, T)

將項目插入至 Collection<T> 中指定的索引位置。Inserts an element into the Collection<T> at the specified index.

(繼承來源 Collection<T>)
InsertItem(Int32, Object)
InsertItem(Int32, TItem)

將元素插入至集合中的指定位置。Inserts an element into the collection at a specific location.

(繼承來源 KeyedByTypeCollection<TItem>)
InsertItem(Int32, TItem)

將項目插入至 KeyedCollection<TKey,TItem> 中指定的索引位置。Inserts an element into the KeyedCollection<TKey,TItem> at the specified index.

(繼承來源 KeyedCollection<TKey,TItem>)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Remove(TKey)

KeyedCollection<TKey,TItem> 中移除具有指定之索引鍵的項目。Removes the element with the specified key from the KeyedCollection<TKey,TItem>.

(繼承來源 KeyedCollection<TKey,TItem>)
Remove<T>()

從集合中移除指定型別的物件。Removes an object of a specified type from the collection.

(繼承來源 KeyedByTypeCollection<TItem>)
RemoveAll<T>()

從集合中移除指定型別的所有元素。Removes all of the elements of a specified type from the collection.

(繼承來源 KeyedByTypeCollection<TItem>)
RemoveAt(Int32)

移除 Collection<T> 之指定索引處的項目。Removes the element at the specified index of the Collection<T>.

(繼承來源 Collection<T>)
RemoveItem(Int32)

移除 KeyedCollection<TKey,TItem> 之指定索引處的項目。Removes the element at the specified index of the KeyedCollection<TKey,TItem>.

(繼承來源 KeyedCollection<TKey,TItem>)
SetItem(Int32, Object)
SetItem(Int32, TItem)

以新物件取代位於指定索引上的項目。Replaces the item at the specified index with a new object.

(繼承來源 KeyedByTypeCollection<TItem>)
SetItem(Int32, TItem)

以指定的項目取代位於指定索引上的項目。Replaces the item at the specified index with the specified item.

(繼承來源 KeyedCollection<TKey,TItem>)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TryGetValue(TKey, TItem)

使用指定的索引鍵嘗試取得集合中項目。Tries to get an item from the collection using the specified key.

(繼承來源 KeyedCollection<TKey,TItem>)

明確介面實作

ICollection.CopyTo(Array, Int32)

從特定的 ICollection 索引開始,將 Array 的項目複製到 ArrayCopies the elements of the ICollection to an Array, starting at a particular Array index.

(繼承來源 Collection<T>)
ICollection.IsSynchronized

取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(繼承來源 Collection<T>)
ICollection.SyncRoot

取得可用以同步存取 ICollection 的物件。Gets an object that can be used to synchronize access to the ICollection.

(繼承來源 Collection<T>)
ICollection<T>.IsReadOnly

取得值,指出 ICollection<T> 是否唯讀。Gets a value indicating whether the ICollection<T> is read-only.

(繼承來源 Collection<T>)
IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through a collection.

(繼承來源 Collection<T>)
IList.Add(Object)

將項目加入至 IListAdds an item to the IList.

(繼承來源 Collection<T>)
IList.Contains(Object)

判斷 IList 是否包含特定值。Determines whether the IList contains a specific value.

(繼承來源 Collection<T>)
IList.IndexOf(Object)

判斷 IList 中指定項目的索引。Determines the index of a specific item in the IList.

(繼承來源 Collection<T>)
IList.Insert(Int32, Object)

將項目插入 IList 中指定的索引處。Inserts an item into the IList at the specified index.

(繼承來源 Collection<T>)
IList.IsFixedSize

取得值,指出 IList 是否有固定的大小。Gets a value indicating whether the IList has a fixed size.

(繼承來源 Collection<T>)
IList.IsReadOnly

取得值,指出 IList 是否唯讀。Gets a value indicating whether the IList is read-only.

(繼承來源 Collection<T>)
IList.Item[Int32]

在指定的索引位置上取得或設定項目。Gets or sets the element at the specified index.

(繼承來源 Collection<T>)
IList.Remove(Object)

IList 移除特定物件之第一個符合的元素。Removes the first occurrence of a specific object from the IList.

(繼承來源 Collection<T>)

擴充方法

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 DataRowIEnumerable<T>) 傳回包含 T 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 DataTableIEnumerable<T>),將 T 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 DataTableIEnumerable<T>),將 T 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

傳回包含來源集合中每個節點祖系的項目集合。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

傳回包含來源集合中每個節點祖系的已篩選項目集合。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目之子代節點的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

傳回包含來源集合中每個項目和文件之子代項目的項目集合。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

傳回已篩選的項目集合,其中包含來源集合中每個項目和文件的子代項目。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

傳回來源集合中每個項目和文件的子項目集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

傳回來源集合中每個項目和文件的已篩選子項目集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

傳回包含來源集合中所有節點的節點集合,依據文件順序來排序。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目的子節點集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

在來源集合中,從每一個節點的父節點移除這些節點。Removes every node in the source collection from its parent node.

適用於