CorrelationMessageProperty.TryGet Method (MessageProperties, CorrelationMessageProperty)

.NET Framework (current version)

Attempts to get the CorrelationMessageProperty from the specified message properties.

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

public static bool TryGet(
	MessageProperties properties,
	out CorrelationMessageProperty property


Type: System.ServiceModel.Channels.MessageProperties

The message properties to inspect.

Type: System.ServiceModel.Channels.CorrelationMessageProperty

When this method returns, contains the CorrelationMessageProperty contained by the specified message properties if one is present; otherwise, null. This parameter is passed uninitialized.

Return Value

Type: System.Boolean

true if the message properties contain a CorrelationMessageProperty; otherwise, false.

.NET Framework
Available since 4.0
Return to top