ResourceExplorer.LoadTypeAsync<T>(Resource, CancellationToken) Method

Definition

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.

Applies to