CallbackContextMessageProperty.TryGet Method (Message, CallbackContextMessageProperty)

.NET Framework (current version)
 

Attempts to get a CallbackContextMessageProperty instance from the specified message.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public static bool TryGet(
	Message message,
	out CallbackContextMessageProperty contextMessageProperty
)

Parameters

message
Type: System.ServiceModel.Channels.Message

The message to get the callback context message property from.

contextMessageProperty
Type: System.ServiceModel.Channels.CallbackContextMessageProperty

A reference to store the callback context message property instance.

Return Value

Type: System.Boolean

true if the callback context message property is retrieved successfully; otherwise, false.

.NET Framework
Available since 4.0
Return to top
Show: