Bagikan melalui


IStatePropertyAccessor<T> Antarmuka

Definisi

Antarmuka yang menentukan metode untuk bagaimana Anda bisa mendapatkan data dari sumber properti, seperti BotState.

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

Jenis parameter

T

jenis properti.

Penerapan

Properti

Name

Mendapatkan nama properti .

(Diperoleh dari IStatePropertyInfo)

Metode

DeleteAsync(ITurnContext, CancellationToken)

Hapus properti dari sumbernya.

GetAsync(ITurnContext, Func<T>, CancellationToken)

Mendapatkan nilai properti dari sumbernya.

SetAsync(ITurnContext, T, CancellationToken)

Atur nilai properti pada sumbernya.

Berlaku untuk