IBotDataStore<T>.LoadAsync 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.
Return BotData with Data pointing to a JObject or an empty BotData() record with ETag:""
public System.Threading.Tasks.Task<T> LoadAsync (Microsoft.Bot.Builder.Dialogs.IAddress key, Microsoft.Bot.Builder.Dialogs.Internals.BotStoreType botStoreType, System.Threading.CancellationToken cancellationToken);
abstract member LoadAsync : Microsoft.Bot.Builder.Dialogs.IAddress * Microsoft.Bot.Builder.Dialogs.Internals.BotStoreType * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function LoadAsync (key As IAddress, botStoreType As BotStoreType, cancellationToken As CancellationToken) As Task(Of T)
Parameters
- key
- IAddress
The key.
- botStoreType
- BotStoreType
The bot store type.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Task<T>
Bot record that is stored for this key, or "empty" bot record ready to be stored