DialogStateManager 類別

定義

DialogStateManager 會管理記憶體範圍和 pathresolvers MemoryScopes 的名稱根層級物件,這些物件可以存在於 dialogcoNtext 或關閉關閉狀態 PathResolvers 中,允許快捷方式行為來對應$foo - > dialog.foo 等專案。

public class DialogStateManager : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type DialogStateManager = class
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
Public Class DialogStateManager
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object))
繼承
DialogStateManager
實作

建構函式

DialogStateManager(DialogContext, DialogStateManagerConfiguration)

初始化 DialogStateManager 類別的新執行個體。

屬性

Configuration

取得或設定對話方塊狀態管理員的已設定路徑解析程式和記憶體範圍。

Count

取得對話方塊狀態管理員中的記憶體範圍數目。

IsReadOnly

取得值,指出對話方塊狀態管理員是否為唯讀。

Item[String]

取得或設定具有指定索引鍵的專案。

Keys

取得 , ICollection<T> 其中包含記憶體範圍的索引鍵。

Values

取得 , ICollection<T> 其中包含記憶體範圍的值。

方法

Add(KeyValuePair<String,Object>)

將專案加入對話方塊狀態管理員。

Add(String, Object)

將專案加入對話方塊狀態管理員。

AnyPathChanged(UInt32, IEnumerable<String>)

檢查是否有任何路徑自水位線以來已變更。

Clear()

從對話方塊狀態管理員中移除所有專案。

Contains(KeyValuePair<String,Object>)

判斷對話方塊狀態管理員是否包含特定值。

ContainsKey(String)

判斷對話方塊狀態管理員是否包含具有指定索引鍵的專案。

CopyTo(KeyValuePair<String,Object>[], Int32)

從特定索引開始,將對話方塊狀態管理員的專案複製到陣列。

DeleteScopesMemoryAsync(String, CancellationToken)

刪除範圍的記憶體。

GetBoolValue(String, Boolean)

使用路徑運算式從記憶體取得 bool 值。

GetEnumerator()

傳回逐一查看集合的列舉值。

GetIntValue(String, Int32)

使用路徑運算式從記憶體中取得 int 值。

GetMemoryScope(String)

依名稱取得 MemoryScope。

GetMemorySnapshot()

取得適合記錄的所有記憶體範圍。

GetStringValue(String, String)

使用路徑運算式從記憶體取得字串值。

GetValue<T>(String, Func<T>)

使用路徑運算式從記憶體取得值 (注意:這一律會傳回值) 的複製。

LoadAllScopesAsync(CancellationToken)

載入所有範圍。

Remove(KeyValuePair<String,Object>)

從對話方塊狀態管理員中移除第一個出現的特定物件。

Remove(String)

從對話方塊狀態管理員中移除具有指定索引鍵的專案。

RemoveValue(String)

從記憶體中移除屬性。

ResolveMemoryScope(String, String)

ResolveMemoryScope 會尋找 的 MemoryScope,並傳回其餘路徑。

SaveAllChangesAsync(CancellationToken)

儲存所有範圍的變更。

SetValue(String, Object)

將記憶體設定為值。

TrackPaths(IEnumerable<String>)

追蹤變更特定路徑的時機。

TransformPath(String)

使用已註冊的 PathTransformers 轉換路徑。

TryGetValue(String, Object)

取得與指定索引鍵關聯的值。

TryGetValue<T>(String, T)

使用路徑運算式從記憶體取得值 (注意:這一律會傳回值) 的複製。

Version()

版本協助呼叫端可識別更新,並決定快取。

明確介面實作

IEnumerable.GetEnumerator()

DialogStateManager 會管理記憶體範圍和 pathresolvers MemoryScopes 的名稱根層級物件,這些物件可以存在於 dialogcoNtext 或關閉關閉狀態 PathResolvers 中,允許快捷方式行為來對應$foo - > dialog.foo 等專案。

適用於