Share via


IStatePropertyAccessor<T> 介面

定義

介面,定義如何從屬性來源取得資料的方法,例如 BotState

public interface IStatePropertyAccessor<T> : Microsoft.Bot.Builder.IStatePropertyInfo
type IStatePropertyAccessor<'T> = interface
    interface IStatePropertyInfo
Public Interface IStatePropertyAccessor(Of T)
Implements IStatePropertyInfo

類型參數

T

屬性的類型。

實作

屬性

Name

取得屬性的名稱。

(繼承來源 IStatePropertyInfo)

方法

DeleteAsync(ITurnContext, CancellationToken)

從來源刪除 屬性。

GetAsync(ITurnContext, Func<T>, CancellationToken)

從來源取得屬性值。

SetAsync(ITurnContext, T, CancellationToken)

在來源上設定 屬性值。

適用於