Receive Constructor ()

.NET Framework (current version)

Initializes a new instance of the Receive class.

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

public Receive()

The following example shows how to use this constructor.

Receive receiveString = new Receive
    OperationName = "Echo",
    ServiceContractName = "Echo",
    CanCreateInstance = true,
    //parameters for receive
    Content = new ReceiveParametersContent
        Parameters = 
            {"message", new OutArgument<string>(message)}

.NET Framework
Available since 4.0
Return to top