語言

ConversationState.GetStorageKey(ITurnContext) 方法

定義

取得在記憶體讀取和寫入狀態時要使用的金鑰。

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

參數

turnContext
ITurnContext

這個回合的內容物件。

傳回

記憶體金鑰。

例外狀況

當前回合的資訊Activity缺ChannelIdConversation失,或Id對話的資訊缺失。

備註

交談狀態包含通道標識碼和交談標識碼,作為其記憶體密鑰的一部分。

適用於