CorrelationCallbackMessageProperty.TryGet Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente d’obtenir l’attachement CorrelationCallbackMessageProperty à partir d’un message ou d’une collection de propriétés de message.
Surcharges
| Nom | Description |
|---|---|
| TryGet(Message, CorrelationCallbackMessageProperty) |
Tente d’obtenir CorrelationCallbackMessagePropertyun Properties à partir du message spécifié. |
| TryGet(MessageProperties, CorrelationCallbackMessageProperty) |
Tente d’obtenir une CorrelationCallbackMessageProperty valeur à partir des propriétés de message spécifiées. |
TryGet(Message, CorrelationCallbackMessageProperty)
Tente d’obtenir CorrelationCallbackMessagePropertyun Properties à partir du message spécifié.
public:
static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationCallbackMessageProperty ^ % property);
public static bool TryGet(System.ServiceModel.Channels.Message message, out System.ServiceModel.Channels.CorrelationCallbackMessageProperty property);
static member TryGet : System.ServiceModel.Channels.Message * CorrelationCallbackMessageProperty -> bool
Public Shared Function TryGet (message As Message, ByRef property As CorrelationCallbackMessageProperty) As Boolean
Paramètres
- message
- Message
Message qui contient l’inspection Properties .
- property
- CorrelationCallbackMessageProperty
Lorsque cette méthode est retournée, contient le CorrelationCallbackMessageProperty contenu du message Propertiesspécifié ; sinon, null. Ce paramètre est passé non initialisé.
Retours
true si le message Properties contient un CorrelationCallbackMessageProperty; sinon, false.
S’applique à
TryGet(MessageProperties, CorrelationCallbackMessageProperty)
Tente d’obtenir une CorrelationCallbackMessageProperty valeur à partir des propriétés de message spécifiées.
public:
static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationCallbackMessageProperty ^ % property);
public static bool TryGet(System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Channels.CorrelationCallbackMessageProperty property);
static member TryGet : System.ServiceModel.Channels.MessageProperties * CorrelationCallbackMessageProperty -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef property As CorrelationCallbackMessageProperty) As Boolean
Paramètres
- properties
- MessageProperties
Propriétés du message à inspecter.
- property
- CorrelationCallbackMessageProperty
Lorsque cette méthode est retournée, contient le CorrelationCallbackMessageProperty contenu dans les propriétés de message spécifiées ; sinon, null. Ce paramètre est passé non initialisé.
Retours
true si les propriétés du message contiennent un CorrelationCallbackMessageProperty; sinon, false.