BotState.CreateProperty<T>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.