UnderstoodHeaders 類別
定義
表示已解讀的訊息標頭集合。Represents a collection of message headers that are understood. 這個類別無法被繼承。This class cannot be inherited.
public ref class UnderstoodHeaders sealed : System::Collections::Generic::IEnumerable<System::ServiceModel::Channels::MessageHeaderInfo ^>
public sealed class UnderstoodHeaders : System.Collections.Generic.IEnumerable<System.ServiceModel.Channels.MessageHeaderInfo>
type UnderstoodHeaders = class
interface seq<MessageHeaderInfo>
interface IEnumerable
Public NotInheritable Class UnderstoodHeaders
Implements IEnumerable(Of MessageHeaderInfo)
- 繼承
-
UnderstoodHeaders
- 實作
備註
這個類別包含已解讀的訊息標頭集合。This class contains a collection of message headers that are understood. 各層級 (安全性、可靠性、交易和應用程式發送器) 的 SOAP 處理器必須在處理標頭之後將其 MustUnderstand 標頭新增至此集合。SOAP processors at various layers (Security, Reliability, Transaction and application dispatcher) must add their MustUnderstand headers to this collection after processing the headers. 如果 MessageHeader
集合中包含必須解讀的標頭,但集合中卻找不到標頭時,發送器會擲回 Message.Headers
錯誤。The dispatcher throws a MessageHeader
fault if a header exists in the Message.Headers
collection that must be understood, but is not found in this collection.
方法
Add(MessageHeaderInfo) |
將指定的 MessageHeaderInfo 加入至此集合。Adds the specified MessageHeaderInfo to this collection. 這表示已解讀指定的標頭。This implies that the specific header has been understood. |
Contains(MessageHeaderInfo) |
確認指定的 MessageHeaderInfo 是否存在於此集合中。Verifies whether the specified MessageHeaderInfo is present in this collection. |
Equals(Object) |
判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object. (繼承來源 Object) |
GetEnumerator() |
傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection. |
GetHashCode() |
作為預設雜湊函數。Serves as the default hash function. (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) |
Remove(MessageHeaderInfo) |
從此集合中移除指定的 MessageHeaderInfo。Removes the specified MessageHeaderInfo from this collection. |
ToString() |
傳回代表目前物件的字串。Returns a string that represents the current object. (繼承來源 Object) |
明確介面實作
IEnumerable.GetEnumerator() |
傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection. |
擴充方法
CopyToDataTable<T>(IEnumerable<T>) |
根據輸入 DataTable 物件 (其中泛型參數 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
根據輸入 DataRow 物件 (其中泛型參數 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
根據輸入 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 轉換成 IQueryable。Converts 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. |