HttpHeaderValueCollection<T> 類別

定義

代表標頭值的集合。Represents a collection of header values.

generic <typename T>
 where T : classpublic ref class HttpHeaderValueCollection sealed : System::Collections::Generic::ICollection<T>, System::Collections::Generic::IEnumerable<T>
public sealed class HttpHeaderValueCollection<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T> where T : class
type HttpHeaderValueCollection<'T (requires 'T : null)> = class
    interface ICollection<'T (requires 'T : null)>
    interface seq<'T (requires 'T : null)>
    interface IEnumerable
Public NotInheritable Class HttpHeaderValueCollection(Of T)
Implements ICollection(Of T), IEnumerable(Of T)

類型參數

T

標頭集合類型。The header collection type.

繼承
HttpHeaderValueCollection<T>
實作

屬性

Count

取得 HttpHeaderValueCollection<T> 中的標頭數目。Gets the number of headers in the HttpHeaderValueCollection<T>.

IsReadOnly

取得值,這個值指出 HttpHeaderValueCollection<T>執行個體是否為唯讀。Gets a value indicating whether the HttpHeaderValueCollection<T> instance is read-only.

方法

Add(T)

將項目加入至 HttpHeaderValueCollection<T>Adds an entry to the HttpHeaderValueCollection<T>.

Clear()

移除 HttpHeaderValueCollection<T> 的所有項目。Removes all entries from the HttpHeaderValueCollection<T>.

Contains(T)

判斷 HttpHeaderValueCollection<T> 是否包含項目。Determines if the HttpHeaderValueCollection<T> contains an item.

CopyTo(T[], Int32)

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

Equals(Object)

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

(繼承來源 Object)
GetEnumerator()

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

GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
ParseAdd(String)

剖析項目並將其加入至 HttpHeaderValueCollection<T>Parses and adds an entry to the HttpHeaderValueCollection<T>.

Remove(T)

HttpHeaderValueCollection<T> 移除指定的項目。Removes the specified item from the HttpHeaderValueCollection<T>.

ToString()

傳回表示目前 HttpHeaderValueCollection<T> 物件的字串。Returns a string that represents the current HttpHeaderValueCollection<T> object. 物件。object.

TryParseAdd(String)

判斷是否可以剖析輸入並加入到 HttpHeaderValueCollection<T>Determines whether the input could be parsed and added to the HttpHeaderValueCollection<T>.

明確介面實作

IEnumerable.GetEnumerator()

傳回在 HttpHeaderValueCollection<T> 中逐一查看的列舉值。Returns an enumerator that iterates through the HttpHeaderValueCollection<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.

適用於