SendMessageContent Constructor (InArgument)

.NET Framework (current version)

Initializes a new instance of the SendMessageContent class with the specified data to send.

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

public SendMessageContent(
	InArgument message


Type: System.Activities.InArgument

The data to send.

The following example shows how to use this constructor.

Variable<PurchaseOrder> po = new Variable<PurchaseOrder>();
Variable<Customer> customer = new Variable<Customer>();

Endpoint clientEndpoint = new Endpoint
    Binding = Constants.Binding,
    AddressUri = new Uri(Constants.ServiceAddress)

Send submitPO = new Send
    Endpoint = clientEndpoint,
    ServiceContractName = Constants.POContractName,
    OperationName = Constants.SubmitPOName,
    Content = new SendMessageContent(new InArgument<PurchaseOrder>(po))               

.NET Framework
Available since 4.0
Return to top