BotState.GetCachedState(ITurnContext) 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.
Gets the cached bot state instance that wraps the raw cached data for this BotState from the turn context.
public Microsoft.Bot.Builder.BotState.CachedBotState GetCachedState (Microsoft.Bot.Builder.ITurnContext turnContext);
member this.GetCachedState : Microsoft.Bot.Builder.ITurnContext -> Microsoft.Bot.Builder.BotState.CachedBotState
Public Function GetCachedState (turnContext As ITurnContext) As BotState.CachedBotState
Parameters
- turnContext
- ITurnContext
The context object for this turn.
Returns
The cached bot state instance.
Exceptions
turnContext
is null
.