語言

DeclarativeComponentRegistrationBridge<TComponent> 類別

定義

警告

This class only exists for backward compatibility of legacy ComponentRegistrations. Use BotComponent for new components.

橋接類別,允許 BotComponent 與 ComponentRegistration向下相容。

[System.Obsolete("This class only exists for backward compatibility of legacy `ComponentRegistrations`. Use `BotComponent` for new components.")]
public class DeclarativeComponentRegistrationBridge<TComponent> : Microsoft.Bot.Builder.Dialogs.Obsolete.ComponentRegistrationBridge<TComponent>, Microsoft.Bot.Builder.Dialogs.Declarative.IComponentDeclarativeTypes where TComponent : BotComponent, new()
[<System.Obsolete("This class only exists for backward compatibility of legacy `ComponentRegistrations`. Use `BotComponent` for new components.")>]
type DeclarativeComponentRegistrationBridge<'Component (requires 'Component :> BotComponent and 'Component : (new : unit -> 'Component))> = class
    inherit ComponentRegistrationBridge<'Component (requires 'Component :> BotComponent and 'Component : (new : unit -> 'Component))>
    interface IComponentDeclarativeTypes
Public Class DeclarativeComponentRegistrationBridge(Of TComponent)
Inherits ComponentRegistrationBridge(Of TComponent)
Implements IComponentDeclarativeTypes

類型參數

TComponent

那種 BotComponent 用來銜接傳統 ComponentRegistration的類型。

繼承
DeclarativeComponentRegistrationBridge<TComponent>
衍生
屬性
實作

建構函式

名稱 Description
DeclarativeComponentRegistrationBridge<TComponent>()
已淘汰.

初始化 DeclarativeComponentRegistrationBridge<TComponent> 類別的新執行個體。

DeclarativeComponentRegistrationBridge<TComponent>(TComponent, IConfiguration)
已淘汰.

初始化 DeclarativeComponentRegistrationBridge<TComponent> 類別的新執行個體。

屬性

名稱 Description
BotComponent
已淘汰.

可以 BotComponent 連接到傳承 ComponentRegistration系統。

(繼承來源 ComponentRegistrationBridge<TComponent>)

方法

名稱 Description
GetConverters(ResourceExplorer, SourceContext)
已淘汰.

回傳支援載入宣告型別的 JsonConverters 列舉。

GetDeclarativeTypes(ResourceExplorer)
已淘汰.

回傳 KindRegistrations 的列舉 $kind => 類型。

GetFromComponent<TRegistration>(IServiceCollection)
已淘汰.

呼叫 啟動 以 BotComponent 取得一 TRegistration組類型的註冊。

(繼承來源 ComponentRegistrationBridge<TComponent>)
GetMemoryScopes()
已淘汰.

取得記憶體範圍。

(繼承來源 ComponentRegistrationBridge<TComponent>)
GetPathResolvers()
已淘汰.

傳回 pathresolvers 的列舉。

(繼承來源 ComponentRegistrationBridge<TComponent>)

適用於