CorrelationCallbackMessageProperty.TryGet 方法

定义

尝试从某个消息或某个消息属性的集合获取附加的 CorrelationCallbackMessageProperty

重载

TryGet(Message, CorrelationCallbackMessageProperty)

尝试从指定消息的 Properties 获取 CorrelationCallbackMessageProperty

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

尝试从指定的消息属性获取 CorrelationCallbackMessageProperty

TryGet(Message, CorrelationCallbackMessageProperty)

尝试从指定消息的 Properties 获取 CorrelationCallbackMessageProperty

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

参数

message
Message

包含要检查的 Properties 的消息。

property
CorrelationCallbackMessageProperty

当此方法返回时,将包含指定消息的 CorrelationCallbackMessageProperty 中含有的 Properties;否则为 null。 此参数未经初始化即被传递。

返回

如果消息的 Properties 包含一个 CorrelationCallbackMessageProperty,则为 true;否则为 false

适用于

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

尝试从指定的消息属性获取 CorrelationCallbackMessageProperty

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

参数

properties
MessageProperties

要检查的消息属性。

property
CorrelationCallbackMessageProperty

当此方法返回时,将包含指定的消息属性中含有的 CorrelationCallbackMessageProperty;否则为 null。 此参数未经初始化即被传递。

返回

如果消息属性包含 CorrelationCallbackMessageProperty,则为 true;否则为 false

适用于