共用方式為


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

適用於