ResourceExplorer.RegisterType Method

Definition

Overloads

RegisterType(String, Type, ICustomDeserializer)

Register a declarative type with the resource loader system.

RegisterType<T>(String, ICustomDeserializer)

Register a declarative type with the resource loader system.

RegisterType(String, Type, ICustomDeserializer)

Register a declarative type with the resource loader system.

public Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer RegisterType (string kind, Type type, Microsoft.Bot.Builder.Dialogs.Declarative.Loaders.ICustomDeserializer loader = default);
member this.RegisterType : string * Type * Microsoft.Bot.Builder.Dialogs.Declarative.Loaders.ICustomDeserializer -> Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer
Public Function RegisterType (kind As String, type As Type, Optional loader As ICustomDeserializer = Nothing) As ResourceExplorer

Parameters

kind
String

the $kind name to map to this type.

type
Type

type of object to create.

loader
ICustomDeserializer

optional custom deserializer.

Returns

ResourceExplorer

Resource explorer for fluent style multiple calls.

Applies to

RegisterType<T>(String, ICustomDeserializer)

Register a declarative type with the resource loader system.

public Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer RegisterType<T> (string kind, Microsoft.Bot.Builder.Dialogs.Declarative.Loaders.ICustomDeserializer loader = default);
member this.RegisterType : string * Microsoft.Bot.Builder.Dialogs.Declarative.Loaders.ICustomDeserializer -> Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer
Public Function RegisterType(Of T) (kind As String, Optional loader As ICustomDeserializer = Nothing) As ResourceExplorer

Type Parameters

T

type of object to create.

Parameters

kind
String

the $kind name to map to this type.

loader
ICustomDeserializer

optional custom deserializer.

Returns

ResourceExplorer

Resource explorer for fluent style multiple calls.

Applies to