語言

CorrelationCallbackMessageProperty.TryGet 方法

定義

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

多載

TryGet(Message, CorrelationCallbackMessageProperty)

嘗試 CorrelationCallbackMessageProperty 從指定訊息的 Properties.

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 這個參數會未初始化傳遞。

傳回

true 若訊息 Properties 包含 CorrelationCallbackMessageProperty;否則, 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 這個參數會未初始化傳遞。

傳回

true 若訊息屬性包含 ; CorrelationCallbackMessageProperty否則,則 false。

適用於