Redigera

Dela via


CorrelationMessageProperty.TryGet Method

Definition

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

Overloads

TryGet(Message, CorrelationMessageProperty)

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

TryGet(MessageProperties, CorrelationMessageProperty)

Attempts to get the CorrelationMessageProperty from the specified message properties.

TryGet(Message, CorrelationMessageProperty)

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

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

Parameters

message
Message

The message that contains the Properties to inspect.

property
CorrelationMessageProperty

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

Returns

true if the message's Properties contains a CorrelationMessageProperty; otherwise; false.

Applies to

TryGet(MessageProperties, CorrelationMessageProperty)

Attempts to get the CorrelationMessageProperty from the specified message properties.

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

Parameters

properties
MessageProperties

The message properties to inspect.

property
CorrelationMessageProperty

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

Returns

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

Applies to