IComponentDeclarativeTypes 介面

定義

警告

Use BotComponent and register declarative types through adding DeclarativeType implementations to the IServiceCollection, for example services.AddSingleton<DeclarativeType, MyDeclarativeType>().

用於註冊宣告式類型和 jsonconverters 的介面,以支援它們。

[System.Obsolete("Use `BotComponent` and register declarative types through adding `DeclarativeType` implementations to the IServiceCollection, for example `services.AddSingleton<DeclarativeType, MyDeclarativeType>()`.")]
public interface IComponentDeclarativeTypes
[<System.Obsolete("Use `BotComponent` and register declarative types through adding `DeclarativeType` implementations to the IServiceCollection, for example `services.AddSingleton<DeclarativeType, MyDeclarativeType>()`.")>]
type IComponentDeclarativeTypes = interface
Public Interface IComponentDeclarativeTypes
衍生
屬性

方法

GetConverters(ResourceExplorer, SourceContext)
已淘汰.

傳回 JsonConverters 的列舉,以支援載入宣告式類型。

GetDeclarativeTypes(ResourceExplorer)
已淘汰.

傳回 KindRegistrations $kind = > Type 的列舉。

適用於