次の方法で共有


BotState(IStorage, String) コンストラクター

定義

BotState クラスの新しいインスタンスを初期化します。

public BotState (Microsoft.Bot.Builder.IStorage storage, string contextServiceKey);
new Microsoft.Bot.Builder.BotState : Microsoft.Bot.Builder.IStorage * string -> Microsoft.Bot.Builder.BotState
Public Sub New (storage As IStorage, contextServiceKey As String)

パラメーター

storage
IStorage

この状態管理オブジェクトが状態の格納と取得に使用するストレージ レイヤー。

contextServiceKey
String

この BotStateの状態キャッシュのキー。

例外

storage または contextServiceKeynull です。

注釈

このコンストラクターは、状態管理オブジェクトと関連付けられたスコープを作成します。 オブジェクトは、 を使用 storage して状態プロパティの値を保持します。 オブジェクトは、 を contextServiceKey 使用して、各ターンのコンテキスト内で状態をキャッシュします。

適用対象

こちらもご覧ください