ContextMessageProperty.TryGet メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したメッセージまたはメッセージ プロパティのコレクションから ContextMessageProperty を取得しようとします。
オーバーロード
| 名前 | 説明 |
|---|---|
| TryGet(Message, ContextMessageProperty) |
指定したメッセージのプロパティから |
| TryGet(MessageProperties, 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
パラメーター
- 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。