言語

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

適用対象