Share via


IStatePropertyAccessor<T> Interface

Definition

Interface which defines methods for how you can get data from a property source, such as BotState.

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

Type Parameters

T

type of the property.

Implements

Properties

Name

Gets the name of the property.

(Inherited from IStatePropertyInfo)

Methods

DeleteAsync(ITurnContext, CancellationToken)

Delete the property from the source.

GetAsync(ITurnContext, Func<T>, CancellationToken)

Gets the property value from the source.

SetAsync(ITurnContext, T, CancellationToken)

Set the property value on the source.

Applies to