Språk

IAgentStateLoadPolicy.ShouldLoad(ITurnContext, IAgentState) Method

Definition

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.

Applies to