BotState.Get(ITurnContext) Method

Definition

Gets a copy of the raw cached data for this BotState from the turn context.

public Newtonsoft.Json.Linq.JToken Get (Microsoft.Bot.Builder.ITurnContext turnContext);
member this.Get : Microsoft.Bot.Builder.ITurnContext -> Newtonsoft.Json.Linq.JToken
Public Function Get (turnContext As ITurnContext) As JToken

Parameters

turnContext
ITurnContext

The context object for this turn.

Returns

Newtonsoft.Json.Linq.JToken

A JSON representation of the cached state.

Exceptions

turnContext is null.

Applies to