Bewerken

Delen via


CorrelationCallbackMessageProperty.TryGet Method

Definition

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

Overloads

TryGet(Message, CorrelationCallbackMessageProperty)

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

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

Attempts to get a CorrelationCallbackMessageProperty from the specified message properties.

TryGet(Message, CorrelationCallbackMessageProperty)

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

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

Parameters

message
Message

The message that contains the Properties to inspect.

property
CorrelationCallbackMessageProperty

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

Returns

true if the message's Properties contain a CorrelationCallbackMessageProperty; otherwise, false.

Applies to

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

Attempts to get a CorrelationCallbackMessageProperty from the specified message properties.

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

Parameters

properties
MessageProperties

The message properties to inspect.

property
CorrelationCallbackMessageProperty

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

Returns

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

Applies to