Receive Receive Receive Constructor

Definition

Initializes a new instance of the Receive class.

public:
 Receive();
public Receive ();
Public Sub New ()

Examples

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)}
        }
    }
};

Applies to