Lingua

CorrelationCallbackMessageProperty.TryGet Metodo

Definizione

Tenta di ottenere l'oggetto allegato CorrelationCallbackMessageProperty da un messaggio o da una raccolta di proprietà del messaggio.

Overload

Nome Descrizione
TryGet(Message, CorrelationCallbackMessageProperty)

Tenta di ottenere un oggetto CorrelationCallbackMessageProperty dal messaggio Propertiesspecificato.

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

Tenta di ottenere un oggetto CorrelationCallbackMessageProperty dalle proprietà del messaggio specificate.

TryGet(Message, CorrelationCallbackMessageProperty)

Tenta di ottenere un oggetto CorrelationCallbackMessageProperty dal messaggio Propertiesspecificato.

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

Parametri

message
Message

Messaggio che contiene l'oggetto Properties da esaminare.

property
CorrelationCallbackMessageProperty

Quando termina, questo metodo contiene l'oggetto CorrelationCallbackMessageProperty contenuto nel messaggio Propertiesspecificato; in caso contrario, null. Questo parametro viene passato non inizializzato.

Valori restituiti

true se il messaggio Properties contiene un oggetto CorrelationCallbackMessageProperty; in caso contrario, false.

Si applica a

TryGet(MessageProperties, CorrelationCallbackMessageProperty)

Tenta di ottenere un oggetto CorrelationCallbackMessageProperty dalle proprietà del messaggio specificate.

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

Parametri

properties
MessageProperties

Proprietà del messaggio da controllare.

property
CorrelationCallbackMessageProperty

Quando termina, questo metodo contiene l'oggetto CorrelationCallbackMessageProperty contenuto nelle proprietà del messaggio specificate; in caso contrario, null. Questo parametro viene passato non inizializzato.

Valori restituiti

true se le proprietà del messaggio contengono un oggetto CorrelationCallbackMessageProperty; in caso contrario, false.

Si applica a