Receive 构造函数

定义

初始化 Receive 类的新实例。

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

示例

下面的示例演示如何使用此构造函数。

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

适用于