BotState.CreateProperty<T>(String) Method

Definition

Creates a named state property within the scope of a BotState and returns an accessor for the property.

public Microsoft.Bot.Builder.IStatePropertyAccessor<T> CreateProperty<T> (string name);
abstract member CreateProperty : string -> Microsoft.Bot.Builder.IStatePropertyAccessor<'T>
override this.CreateProperty : string -> Microsoft.Bot.Builder.IStatePropertyAccessor<'T>
Public Function CreateProperty(Of T) (name As String) As IStatePropertyAccessor(Of T)

Type Parameters

T

The value type of the property.

Parameters

name
String

The name of the property.

Returns

An accessor for the property.

Implements

Exceptions

name is null.

Applies to