ContextMessageProperty.TryGet Metoda

Definicja

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

Przeciążenia

TryGet(Message, ContextMessageProperty)

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

TryGet(MessageProperties, ContextMessageProperty)

Próbuje pobrać z ContextMessageProperty określonej kolekcji właściwości komunikatu.

TryGet(Message, ContextMessageProperty)

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

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

Parametry

message
Message

, z którego mają zostać Message pobrane właściwości komunikatu kontekstowego.

contextMessageProperty
ContextMessageProperty

Gdy ta metoda zwraca wartość , zawiera wartość zawierającą wartość true , która jest contextMessageProperty ContextMessageProperty ContextMessageProperty skojarzona z . message Ten parametr jest przekazywany jako niezainicjowany.

Zwraca

Boolean

true gdy wartość dla wartości ContextMessageProperty jest uzyskiwana z message ; w przeciwnym razie false .

Dotyczy

TryGet(MessageProperties, ContextMessageProperty)

Próbuje pobrać z ContextMessageProperty określonej kolekcji właściwości komunikatu.

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

Parametry

properties
MessageProperties

, z którego mają zostać MessageProperties pobrane właściwości komunikatu kontekstowego.

contextMessageProperty
ContextMessageProperty

Gdy ta metoda zwraca wartość , zawiera wartość zawierającą wartość true , która jest contextMessageProperty ContextMessageProperty ContextMessageProperty skojarzona z . properties Ten parametr jest przekazywany jako niezainicjowany.

Zwraca

Boolean

true gdy wartość dla wartości ContextMessageProperty jest uzyskiwana z properties ; w przeciwnym razie false .

Dotyczy