Język

ReceiveContext.TryGet Metoda

Definicja

Próbuje uzyskać kontekst odbierania.

Przeciążenia

Nazwa Opis
TryGet(Message, ReceiveContext)

Próbuje pobrać kontekst odbierania z określonego komunikatu.

TryGet(MessageProperties, ReceiveContext)

Próbuje pobrać kontekst odbierania z kolekcji właściwości określonego komunikatu.

TryGet(Message, ReceiveContext)

Próbuje pobrać kontekst odbierania z określonego komunikatu.

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

Parametry

message
Message

Komunikat.

property
ReceiveContext

Kontekst odbierania.

Zwraca

true jeśli kontekst odbierania został pomyślnie pobrany; w przeciwnym razie, false.

Dotyczy

TryGet(MessageProperties, ReceiveContext)

Próbuje pobrać kontekst odbierania z kolekcji właściwości określonego komunikatu.

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

Parametry

properties
MessageProperties

Kolekcja właściwości komunikatów.

property
ReceiveContext

Kontekst odbierania.

Zwraca

true jeśli kontekst odbierania został pomyślnie pobrany; w przeciwnym razie, false.

Dotyczy