ReceiveActivity.ParameterBindings プロパティ

定義

サービスの仮パラメーター リストにあるバインド可能なパラメーターのコレクションを取得します。

public:
 property System::Workflow::ComponentModel::WorkflowParameterBindingCollection ^ ParameterBindings { System::Workflow::ComponentModel::WorkflowParameterBindingCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Workflow.ComponentModel.WorkflowParameterBindingCollection ParameterBindings { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ParameterBindings : System.Workflow.ComponentModel.WorkflowParameterBindingCollection
Public ReadOnly Property ParameterBindings As WorkflowParameterBindingCollection

プロパティ値

バインドするパラメーターの WorkflowParameterBindingCollection

属性

注釈

ParameterBindings は、サービス操作パラメーターと、 ReceiveActivity アクティビティを含むワークフローのパブリック フィールド/プロパティの間のバインドを指定するために使用できます。 クライアントが操作を呼び出すと、対応するパラメーター値は、受信アクティビティの実行中にバインドされたワークフロー プロパティに書き込まれます。

ParameterBindings は、クライアント呼び出しによって渡されたパラメーター値を読み取るために、受信アクティビティの子アクティビティで使用することもできます。 子アクティビティは、 ParameterBindings コレクションを使用して、親 ReceiveActivity アクティビティの戻り値を設定できます。

サービス コントラクトのすべてのパラメーターは、 ParameterBindings プロパティに含める必要があります。 バインドされていないパラメーターはコンパイル時にコンパイラ警告を発生させ、 ReceiveActivity がこのメッセージをクライアントに返すと例外が発生する可能性があります。

適用対象