Share via


ConversationState.GetStorageKey(ITurnContext) Method

Definition

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

protected override string GetStorageKey (Microsoft.Bot.Builder.ITurnContext turnContext);
override this.GetStorageKey : Microsoft.Bot.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.

Exceptions

The Activity for the current turn is missing ChannelId or Conversation information, or the conversation's Id is missing.

Remarks

Conversation state includes the channel ID and conversation ID as part of its storage key.

Applies to