ResourceExplorer.LoadTypeAsync<T>(Resource, CancellationToken) 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.
Create Type from resource.
public System.Threading.Tasks.Task<T> LoadTypeAsync<T> (Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource resource, System.Threading.CancellationToken cancellationToken = default);
member this.LoadTypeAsync : Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function LoadTypeAsync(Of T) (resource As Resource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)
Type Parameters
- T
type to create.
Parameters
- resource
- Resource
resource to bind to.
- cancellationToken
- CancellationToken
the CancellationToken for the task.
Returns
- Task<T>
task which will resolve to created type.