Share via


CorrelationDataMessageProperty.TryGet メソッド

定義

メッセージまたはメッセージ プロパティのコレクションからのアタッチされた CorrelationDataMessageProperty の取得を試みます。

オーバーロード

TryGet(Message, CorrelationDataMessageProperty)

指定されたメッセージの Properties から CorrelationDataMessageProperty の取得を試みます。

TryGet(MessageProperties, CorrelationDataMessageProperty)

指定されたメッセージ プロパティから CorrelationDataMessageProperty の取得を試みます。

TryGet(Message, CorrelationDataMessageProperty)

指定されたメッセージの Properties から CorrelationDataMessageProperty の取得を試みます。

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

パラメーター

message
Message

検査対象の Properties を格納するメッセージ。

property
CorrelationDataMessageProperty

このメソッドが返されると、指定されたメッセージの Properties に格納された CorrelationDataMessageProperty が格納されます。それ以外の場合は、null が格納されます。 このパラメーターは初期化せずに渡されます。

戻り値

メッセージの Properties プロパティに CorrelationDataMessageProperty クラスが含まれる場合は true。それ以外の場合は false

適用対象

TryGet(MessageProperties, CorrelationDataMessageProperty)

指定されたメッセージ プロパティから CorrelationDataMessageProperty の取得を試みます。

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

パラメーター

properties
MessageProperties

検査対象のメッセージ プロパティ。

property
CorrelationDataMessageProperty

このメソッドが返されると、指定されたメッセージ プロパティに格納された CorrelationDataMessageProperty が格納されています。それ以外の場合は、null が格納されています。 このパラメーターは初期化せずに渡されます。

戻り値

メッセージ プロパティに CorrelationDataMessageProperty が含まれる場合は true。それ以外の場合は false

適用対象