CallbackContextMessageProperty.TryGet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to get a CallbackContextMessageProperty instance.
Overloads
TryGet(Message, CallbackContextMessageProperty) |
Attempts to get a CallbackContextMessageProperty instance from the specified message. |
TryGet(MessageProperties, CallbackContextMessageProperty) |
Attempts to get a CallbackContextMessageProperty instance from the specified message properties. |
TryGet(Message, CallbackContextMessageProperty)
Attempts to get a CallbackContextMessageProperty instance from the specified message.
public:
static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CallbackContextMessageProperty ^ % contextMessageProperty);
public static bool TryGet (System.ServiceModel.Channels.Message message, out System.ServiceModel.Channels.CallbackContextMessageProperty contextMessageProperty);
static member TryGet : System.ServiceModel.Channels.Message * CallbackContextMessageProperty -> bool
Public Shared Function TryGet (message As Message, ByRef contextMessageProperty As CallbackContextMessageProperty) As Boolean
Parameters
- message
- Message
The message to get the callback context message property from.
- contextMessageProperty
- CallbackContextMessageProperty
A reference to store the callback context message property instance.
Returns
true
if the callback context message property is retrieved successfully; otherwise, false
.
Applies to
TryGet(MessageProperties, CallbackContextMessageProperty)
Attempts to get a CallbackContextMessageProperty instance from the specified message properties.
public:
static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CallbackContextMessageProperty ^ % contextMessageProperty);
public static bool TryGet (System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Channels.CallbackContextMessageProperty contextMessageProperty);
static member TryGet : System.ServiceModel.Channels.MessageProperties * CallbackContextMessageProperty -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef contextMessageProperty As CallbackContextMessageProperty) As Boolean
Parameters
- properties
- MessageProperties
The message properties collection to get the callback context message property from.
- contextMessageProperty
- CallbackContextMessageProperty
A reference to store the callback context message property instance.
Returns
true
if the callback context message property is retrieved successfully; otherwise, false
.