SendActivity.Context プロパティ

定義

相関関係の識別など、通信しているクライアントとサービス間の通信に使用されたコンテキストを含むディクショナリを返します。

public:
 property System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ Context { System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ get(); void set(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Collections.Generic.IDictionary<string,string> Context { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Context : System.Collections.Generic.IDictionary<string, string> with get, set
Public Property Context As IDictionary(Of String, String)

プロパティ値

IDictionary<String,String>

XmlQualifiedName キーと関連付けられた String 値を含むディクショナリベースのコレクション。

属性

次の例は、Context プロパティにアクセスする方法を示しています。 この例は、CalculatorClient SDK サンプルを作成し直したものです。

static public void ApplyContext(SendActivity activity, IDictionary<string, string> context)
{
    if (activity.ExecutionStatus == ActivityExecutionStatus.Initialized)
    {
        activity.Context = context;
    }
}

注釈

コンテキスト情報は、相関関係の識別など、通信しているクライアントとサービス間の通信に使用されています。

適用対象