TurnContextStateCollection クラス

定義

値はターンの寿命中、 ITurnContextの一部として維持されました。

public class TurnContextStateCollection : System.Collections.Generic.Dictionary<string,object>, IDisposable
type TurnContextStateCollection = class
    inherit Dictionary<string, obj>
    interface IDisposable
Public Class TurnContextStateCollection
Inherits Dictionary(Of String, Object)
Implements IDisposable
継承
TurnContextStateCollection
実装

注釈

ここに格納される典型的な値は、IStorage、BotState、ConversationState、ILanguageGenerator、ResourceExplorerなど、ターンの寿命に必要なオブジェクトです。

コンストラクター

名前 説明
TurnContextStateCollection()

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

メソッド

名前 説明
Add<T>(String, T)

ターンのコンテキストに値を追加します。

Add<T>(T)

ターンのコンテキストに値を追加します。

Dispose()

アンマネージド リソースの解放、解放、またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

Dispose(Boolean)

処分パラメータがtrueに設定されている場合、リソースを解放します。

Get<T>()

ターンのコンテキストからタイプ別デフォルト値を取得します。

Get<T>(String)

ターンのコンテキストから名前でキャッシュされた値を取得します。

Set<T>(String, T)

ターンのコンテキストに値を設定します。

Set<T>(T)

ターンのコンテキストに値を設定します。

適用対象