CallbackContextMessageProperty.TryGet 方法

定义

尝试获取 CallbackContextMessageProperty 实例。

重载

TryGet(Message, CallbackContextMessageProperty)

尝试从指定的消息获取 CallbackContextMessageProperty 实例。

TryGet(MessageProperties, CallbackContextMessageProperty)

尝试从指定的消息属性获取 CallbackContextMessageProperty 实例。

TryGet(Message, CallbackContextMessageProperty)

尝试从指定的消息获取 CallbackContextMessageProperty 实例。

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

参数

message
Message

要从中获取回调上下文消息属性的消息。

contextMessageProperty
CallbackContextMessageProperty

用于存储回调上下文消息属性实例的引用。

返回

如果成功检索回调上下文消息属性,则为 true;否则为 false

适用于

TryGet(MessageProperties, CallbackContextMessageProperty)

尝试从指定的消息属性获取 CallbackContextMessageProperty 实例。

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

参数

properties
MessageProperties

要从中获取回调上下文消息属性的消息属性集合。

contextMessageProperty
CallbackContextMessageProperty

用于存储回调上下文消息属性实例的引用。

返回

如果成功检索回调上下文消息属性,则为 true;否则为 false

适用于