IAgentStateLoadPolicy.ShouldLoad(ITurnContext, IAgentState) 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.
Determines whether the specified state scope should be loaded.
public bool ShouldLoad(Microsoft.Agents.Builder.ITurnContext turnContext, Microsoft.Agents.Builder.State.IAgentState agentState);
abstract member ShouldLoad : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.Builder.State.IAgentState -> bool
Public Function ShouldLoad (turnContext As ITurnContext, agentState As IAgentState) As Boolean
Parameters
- turnContext
- ITurnContext
The context object for this turn.
- agentState
- IAgentState
The state scope being loaded.
Returns
true to load the state scope; otherwise, false.