AddData Method
Collapse the table of content
Expand the table of content

CorrelationDataMessageProperty.AddData Method (Message, String, Func<String>)

.NET Framework (current version)
 

Adds correlation data to the specified message.

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

public static void AddData(
	Message message,
	string name,
	Func<string> dataProvider
)

Parameters

message
Type: System.ServiceModel.Channels.Message

The message to modify.

name
Type: System.String

The name of the correlation data provider.

dataProvider
Type: System.Func<String>

The correlation data provider.

If the message has a CorrelationDataMessageProperty then the correlation data is added to the CorrelationDataMessageProperty; otherwise, a new CorrelationDataMessageProperty is added that includes the correlation data.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft