BotState.Get(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 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
.