BotState.GetCachedState(ITurnContext) Method

Definition

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

BotState.CachedBotState

The cached bot state instance.

Exceptions

turnContext is null.

Applies to