Share via


UserState.GetStorageKey(ITurnContext) Method

Definition

Gets the key to use when reading and writing state to and from storage.

protected override string GetStorageKey(Microsoft.Agents.Builder.ITurnContext turnContext);
override this.GetStorageKey : Microsoft.Agents.Builder.ITurnContext -> string
Protected Overrides Function GetStorageKey (turnContext As ITurnContext) As String

Parameters

turnContext
ITurnContext

The context object for this turn.

Returns

The storage key.

Remarks

User state includes the channel ID and user ID as part of its storage key.

Applies to