Szerkesztés

Megosztás a következőn keresztül:


ReceiveContext.TryGet Method

Definition

Attempts to get the receive context.

Overloads

TryGet(Message, ReceiveContext)

Attempts to get the receive context from the specified message.

TryGet(MessageProperties, ReceiveContext)

Attempts to get the receive context from the specified message properties collection.

TryGet(Message, ReceiveContext)

Attempts to get the receive context from the specified message.

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

Parameters

message
Message

The message.

property
ReceiveContext

The receive context.

Returns

true if the receive context is retrieved successfully; otherwise, false.

Applies to

TryGet(MessageProperties, ReceiveContext)

Attempts to get the receive context from the specified message properties collection.

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

Parameters

properties
MessageProperties

The message properties collection.

property
ReceiveContext

The receive context.

Returns

true if the receive context is retrieved successfully; otherwise, false.

Applies to