Edit

Kongsi melalui


CorrelationDataMessageProperty.TryGet Method

Definition

Attempts to get the attached CorrelationDataMessageProperty from a message or a collection of message properties.

Overloads

TryGet(Message, CorrelationDataMessageProperty)

Attempts to get a CorrelationDataMessageProperty from the specified message's Properties.

TryGet(MessageProperties, CorrelationDataMessageProperty)

Attempts to get the CorrelationDataMessageProperty from the specified message properties.

TryGet(Message, CorrelationDataMessageProperty)

Attempts to get a CorrelationDataMessageProperty from the specified message's Properties.

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

Parameters

message
Message

The message that contains the Properties to inspect.

property
CorrelationDataMessageProperty

When this method returns, contains the CorrelationDataMessageProperty contained the specified message's Properties; otherwise, null. This parameter is passed uninitialized.

Returns

true if the message's Properties property contains a CorrelationDataMessageProperty class; otherwise, false.

Applies to

TryGet(MessageProperties, CorrelationDataMessageProperty)

Attempts to get the CorrelationDataMessageProperty from the specified message properties.

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

Parameters

properties
MessageProperties

The message properties to inspect.

property
CorrelationDataMessageProperty

When this method returns, contains the CorrelationDataMessageProperty contained by the specified message properties; otherwise, null. This parameter is passed uninitialized.

Returns

true if the message properties contain a CorrelationDataMessageProperty; otherwise, false.

Applies to