共用方式為


CallbackContextMessageProperty.TryGet 方法

定義

嘗試取得 CallbackContextMessageProperty 執行個體。

多載

TryGet(Message, CallbackContextMessageProperty)

嘗試從指定的訊息取得 CallbackContextMessageProperty 執行個體。

TryGet(MessageProperties, CallbackContextMessageProperty)

嘗試從指定的訊息屬性取得 CallbackContextMessageProperty 執行個體。

TryGet(Message, CallbackContextMessageProperty)

嘗試從指定的訊息取得 CallbackContextMessageProperty 執行個體。

public:
 static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CallbackContextMessageProperty ^ % contextMessageProperty);
public static bool TryGet (System.ServiceModel.Channels.Message message, out System.ServiceModel.Channels.CallbackContextMessageProperty contextMessageProperty);
static member TryGet : System.ServiceModel.Channels.Message * CallbackContextMessageProperty -> bool
Public Shared Function TryGet (message As Message, ByRef contextMessageProperty As CallbackContextMessageProperty) As Boolean

參數

message
Message

要從中取得回呼內容訊息屬性的訊息。

contextMessageProperty
CallbackContextMessageProperty

儲存回呼內容訊息屬性執行個體的參考。

傳回

如果已成功擷取回呼內容訊息屬性,則為 true,否則為 false

適用於

TryGet(MessageProperties, CallbackContextMessageProperty)

嘗試從指定的訊息屬性取得 CallbackContextMessageProperty 執行個體。

public:
 static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CallbackContextMessageProperty ^ % contextMessageProperty);
public static bool TryGet (System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Channels.CallbackContextMessageProperty contextMessageProperty);
static member TryGet : System.ServiceModel.Channels.MessageProperties * CallbackContextMessageProperty -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef contextMessageProperty As CallbackContextMessageProperty) As Boolean

參數

properties
MessageProperties

要從中取得回呼內容訊息屬性的訊息屬性集合。

contextMessageProperty
CallbackContextMessageProperty

儲存回呼內容訊息屬性執行個體的參考。

傳回

如果已成功擷取回呼內容訊息屬性,則為 true,否則為 false

適用於