语言

BotState.GetCachedState(ITurnContext) 方法

定义

获取缓存的机器人状态实例,从回合上下文中包裹原始缓存数据 BotState 。

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

参数

turnContext
ITurnContext

此轮次的上下文对象。

返回

缓存的机器人状态实例。

例外

turnContext 是 null。

适用于