MessageHeader<T> 類別

定義

表示 SOAP 標頭的內容。Represents the content of a SOAP header.

generic <typename T>
public ref class MessageHeader
public class MessageHeader<T>
type MessageHeader<'T> = class
Public Class MessageHeader(Of T)

類型參數

T

訊息標頭類型。The message header type.

繼承
MessageHeader<T>

備註

包含用以描述訊息之選擇性中繼資料 (Metadata) 的訊息標頭,由 Message 類別所封裝。A message header contains optional metadata that describe a message, encapsulated by the Message class.

建構函式

MessageHeader<T>()

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

MessageHeader<T>(T)

使用指定的標頭內容,初始化 MessageHeader<T> 類別的新執行個體。Initializes a new instance of the MessageHeader<T> class with the specified header content.

MessageHeader<T>(T, Boolean, String, Boolean)

使用指定的標頭內容和中繼資料,初始化 MessageHeader<T> 類別的新執行個體。Initializes a new instance of the MessageHeader<T> class with the specified header content and metadata.

屬性

Actor

取得或設定訊息標頭的目標收件者。Gets or sets the targeted recipient of the message header.

Content

取得或設定標頭的內容。Gets or sets the content of the header.

MustUnderstand

取得或設定值,這個值表示是否必須依照 SOAP 1.1/1.2 規格的說明來解讀標頭。Gets or sets a value that indicates whether the header must be understood, as stated in the SOAP 1.1/1.2 specification.

Relay

取得值,這個值會指出是否應該轉送標頭。Gets a value that indicates whether the header should be relayed.

方法

Equals(Object)

Determines whether the specified object is equal to the current object.Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

Serves as the default hash function.Serves as the default hash function.

(繼承來源 Object)
GetType()

Gets the Type of the current instance.Gets the Type of the current instance.

(繼承來源 Object)
GetUntypedHeader(String, String)

取得具有指定之命名空間和本機名稱的訊息標頭。Gets the message header with the specified namespace and local name.

MemberwiseClone()

Creates a shallow copy of the current Object.Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

Returns a string that represents the current object.Returns a string that represents the current object.

(繼承來源 Object)

適用於