Share via


ContextMessageProperty.TryGet メソッド

定義

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

オーバーロード

TryGet(Message, ContextMessageProperty)

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

TryGet(MessageProperties, ContextMessageProperty)

メッセージ プロパティの指定されたコレクションから ContextMessageProperty の取得を試みます。

TryGet(Message, ContextMessageProperty)

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

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

パラメーター

message
Message

コンテキスト メッセージ プロパティの取得元となる Message

contextMessageProperty
ContextMessageProperty

このメソッドが true を返すと、contextMessageProperty には、ContextMessageProperty に関連付けられている ContextMessageProperty を含んでいる message が格納されます。 このパラメーターは初期化せずに渡されます。

戻り値

true の値が ContextMessageProperty から取得された場合は、message、そうでない場合は false です。

適用対象

TryGet(MessageProperties, ContextMessageProperty)

メッセージ プロパティの指定されたコレクションから ContextMessageProperty の取得を試みます。

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

パラメーター

properties
MessageProperties

コンテキスト メッセージ プロパティの取得元となる MessageProperties

contextMessageProperty
ContextMessageProperty

このメソッドが true を返すと、contextMessageProperty には、ContextMessageProperty に関連付けられている ContextMessageProperty を含んでいる properties が格納されます。 このパラメーターは初期化せずに渡されます。

戻り値

true の値が ContextMessageProperty から取得された場合は、properties、そうでない場合は false です。

適用対象