語言

CallbackContextMessageProperty 類別

定義

當使用支援上下文交換協定的通道時,表示訊息標頭的內容 wsc:CallbackContext 。

public ref class CallbackContextMessageProperty : System::ServiceModel::Channels::IMessageProperty
[System.Serializable]
public class CallbackContextMessageProperty : System.ServiceModel.Channels.IMessageProperty
[<System.Serializable>]
type CallbackContextMessageProperty = class
    interface IMessageProperty
Public Class CallbackContextMessageProperty
Implements IMessageProperty
繼承
CallbackContextMessageProperty
屬性
實作

備註

情境交換協定允許耐用服務間的雙工通訊。

建構函式

名稱 Description
CallbackContextMessageProperty(EndpointAddress, IDictionary<String,String>)

初始化一個包含上下文資訊的類別新實例 CallbackContextMessageProperty ,並包含 EndpointAddressIDictionary<TKey,TValue> a 與 。

CallbackContextMessageProperty(EndpointAddress)

使用指定的 CallbackContextMessageProperty,初始化 EndpointAddress 類別的新實例。

CallbackContextMessageProperty(IDictionary<String,String>)

初始化一個帶有指定上下文的新類別實例 CallbackContextMessageProperty 。

CallbackContextMessageProperty(String, IDictionary<String,String>)

初始化一個包含指定監聽位址與上下文資訊的新類別實例 CallbackContextMessageProperty 。

CallbackContextMessageProperty(Uri, IDictionary<String,String>)

初始化一個包含指定監聽位址與上下文資訊的新類別實例 CallbackContextMessageProperty 。

屬性

名稱 Description
CallbackAddress

會拿到回電地址。

Context

取得與 CallbackContextMessageProperty相關聯的上下文。

Name

取得該類別的 CallbackContextMessageProperty 屬性名稱。

方法

名稱 Description
AddOrReplaceInMessage(Message)

新增或替換指定訊息中的當前 CallbackContextMessageProperty 實例。

AddOrReplaceInMessageProperties(MessageProperties)

新增或替換指定訊息屬性集合中的目前實 CallbackContextMessageProperty 例。

CreateCallbackAddress(Uri)

將用戶端 listenAddress 及其上下文合併為單一回調位址,並傳送給服務。

CreateCopy()

建立實 CallbackContextMessageProperty 例的副本。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetListenAddressAndContext(EndpointAddress, IDictionary<String,String>)

從實例取得監聽地址和上下文資料 CallbackContextMessageProperty 。

GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
TryGet(Message, CallbackContextMessageProperty)

嘗試從指定訊息中取得 CallbackContextMessageProperty 實例。

TryGet(MessageProperties, CallbackContextMessageProperty)

嘗試從指定的訊息屬性取得 CallbackContextMessageProperty 實例。

適用於