CorrelationDataMessageProperty.TryGet Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Probeert de bijlage CorrelationDataMessageProperty op te halen uit een bericht of een verzameling berichteigenschappen.
Overloads
| Name | Description |
|---|---|
| TryGet(Message, CorrelationDataMessageProperty) |
Probeert een van CorrelationDataMessageProperty de opgegeven berichten Propertiesop te halen. |
| TryGet(MessageProperties, CorrelationDataMessageProperty) |
Hiermee wordt geprobeerd de CorrelationDataMessageProperty opgegeven berichteigenschappen op te halen. |
TryGet(Message, CorrelationDataMessageProperty)
Probeert een van CorrelationDataMessageProperty de opgegeven berichten Propertiesop te halen.
public:
static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationDataMessageProperty ^ % property);
public static bool TryGet(System.ServiceModel.Channels.Message message, out System.ServiceModel.Channels.CorrelationDataMessageProperty property);
static member TryGet : System.ServiceModel.Channels.Message * CorrelationDataMessageProperty -> bool
Public Shared Function TryGet (message As Message, ByRef property As CorrelationDataMessageProperty) As Boolean
Parameters
- message
- Message
Het bericht dat het Properties te inspecteren bevat.
- property
- CorrelationDataMessageProperty
Wanneer deze methode wordt geretourneerd, bevat het CorrelationDataMessageProperty opgegeven berichtProperties, anders. null Deze parameter wordt niet-geïnitialiseerd doorgegeven.
Retouren
true als de eigenschap van Properties het bericht een CorrelationDataMessageProperty klasse bevat, falseanders.
Van toepassing op
TryGet(MessageProperties, CorrelationDataMessageProperty)
Hiermee wordt geprobeerd de CorrelationDataMessageProperty opgegeven berichteigenschappen op te halen.
public:
static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationDataMessageProperty ^ % property);
public static bool TryGet(System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Channels.CorrelationDataMessageProperty property);
static member TryGet : System.ServiceModel.Channels.MessageProperties * CorrelationDataMessageProperty -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef property As CorrelationDataMessageProperty) As Boolean
Parameters
- properties
- MessageProperties
De berichteigenschappen die moeten worden gecontroleerd.
- property
- CorrelationDataMessageProperty
Wanneer deze methode wordt geretourneerd, bevat de CorrelationDataMessageProperty inhoud van de opgegeven berichteigenschappen; anders null. Deze parameter wordt niet-geïnitialiseerd doorgegeven.
Retouren
true als de berichteigenschappen een CorrelationDataMessageProperty; anders bevatten false.