共用方式為


CorrelationCallbackMessageProperty.TryGet 方法

定義

嘗試從訊息或訊息屬性集合取得附加的 CorrelationCallbackMessageProperty

多載

TryGet(Message, CorrelationCallbackMessageProperty)

嘗試從指定訊息的 Properties 取得 CorrelationCallbackMessageProperty

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

嘗試從指定訊息的屬性取得 CorrelationCallbackMessageProperty

TryGet(Message, CorrelationCallbackMessageProperty)

嘗試從指定訊息的 Properties 取得 CorrelationCallbackMessageProperty

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

參數

message
Message

包含要檢查之 Properties的訊息。

property
CorrelationCallbackMessageProperty

這個方法傳回時,會包括 CorrelationCallbackMessageProperty,其內含指定訊息的 Properties;否則為 null。 這個參數會以未初始化的狀態傳遞。

傳回

如果訊息的 Properties 包含 CorrelationCallbackMessageProperty,則為 true;否則為 false

適用於

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

嘗試從指定訊息的屬性取得 CorrelationCallbackMessageProperty

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

參數

properties
MessageProperties

要檢查的訊息屬性。

property
CorrelationCallbackMessageProperty

這個方法傳回時,會包括在指定的訊息屬性中的 CorrelationCallbackMessageProperty,否則為 null。 這個參數會以未初始化的狀態傳遞。

傳回

如果訊息屬性包含 CorrelationCallbackMessageProperty,則為 true,否則為 false

適用於