BotState(IStorage, String) Constructor
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.
Initializes a new instance of the BotState class.
public BotState (Microsoft.Bot.Builder.IStorage storage, string contextServiceKey);
new Microsoft.Bot.Builder.BotState : Microsoft.Bot.Builder.IStorage * string -> Microsoft.Bot.Builder.BotState
Public Sub New (storage As IStorage, contextServiceKey As String)
Parameters
- storage
- IStorage
The storage layer this state management object will use to store and retrieve state.
Exceptions
storage
or contextServiceKey
is null
.
Remarks
This constructor creates a state management object and associated scope. The object uses storage
to persist state property values. The object uses the contextServiceKey
to cache state within the context for each turn.