ContextMessageProperty.TryGet Methode

Definitie

Hiermee wordt geprobeerd het ophalen van een ContextMessageProperty opgegeven bericht of verzameling berichteigenschappen.

Overloads

Name Description
TryGet(Message, ContextMessageProperty)

Hiermee wordt geprobeerd de ContextMessageProperty eigenschappen van een opgegeven bericht op te halen.

TryGet(MessageProperties, ContextMessageProperty)

Hiermee wordt geprobeerd de ContextMessageProperty opgegeven verzameling berichteigenschappen op te halen.

TryGet(Message, ContextMessageProperty)

Hiermee wordt geprobeerd de ContextMessageProperty eigenschappen van een opgegeven bericht op te halen.

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

Parameters

message
Message

De Message eigenschappen van het contextbericht moeten worden opgehaald.

contextMessageProperty
ContextMessageProperty

Wanneer deze methode wordt geretourneerd true, contextMessageProperty bevat deze een ContextMessageProperty met de ContextMessageProperty die is gekoppeld aan de message. Deze parameter wordt niet-geïnitialiseerd doorgegeven.

Retouren

truewanneer een waarde voor de ContextMessageProperty waarde wordt verkregen van de message; anders . false

Van toepassing op

TryGet(MessageProperties, ContextMessageProperty)

Hiermee wordt geprobeerd de ContextMessageProperty opgegeven verzameling berichteigenschappen op te halen.

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

Parameters

properties
MessageProperties

De MessageProperties eigenschappen van het contextbericht moeten worden opgehaald.

contextMessageProperty
ContextMessageProperty

Wanneer deze methode wordt geretourneerd true, contextMessageProperty bevat deze een ContextMessageProperty met de ContextMessageProperty die is gekoppeld aan de properties. Deze parameter wordt niet-geïnitialiseerd doorgegeven.

Retouren

truewanneer een waarde voor de ContextMessageProperty waarde wordt verkregen van de properties; anders . false

Van toepassing op