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
此方法返回
返回
适用于
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
此方法返回