CorrelationMessageProperty.TryGet Method (Message, CorrelationMessageProperty)

.NET Framework (current version)
 

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

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

public static bool TryGet(
	Message message,
	out CorrelationMessageProperty property
)

Parameters

message
Type: System.ServiceModel.Channels.Message

The message that contains the Properties to inspect.

property
Type: System.ServiceModel.Channels.CorrelationMessageProperty

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

Return Value

Type: System.Boolean

true if the message’s Properties contains a CorrelationMessageProperty; otherwise; false.

.NET Framework
Available since 4.0
Return to top
Show: