CorrelationDataMessageProperty.TryGet Method (Message, CorrelationDataMessageProperty)

.NET Framework (current version)

Attempts to get a CorrelationDataMessageProperty from the specified message’s Properties.

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

public static bool TryGet(
	Message message,
	out CorrelationDataMessageProperty property


Type: System.ServiceModel.Channels.Message

The message that contains the Properties to inspect.

Type: System.ServiceModel.Channels.CorrelationDataMessageProperty

When this method returns, contains the CorrelationDataMessageProperty contained the specified message’s Properties; otherwise, null. This parameter is passed uninitialized.

Return Value

Type: System.Boolean

true if the message’s Properties property contains a CorrelationDataMessageProperty class; otherwise, false.

.NET Framework
Available since 4.0
Return to top