PrivateConversationState.GetStorageKey(ITurnContext) 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.
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, Conversation, or From information; or the conversation's or sender's Id is missing.
Remarks
Private conversation state includes the channel ID, conversation ID, and user ID as part of its storage key.