Language

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 または contextServiceKey が null。

注釈

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

適用対象

こちらもご覧ください