DeclarativeComponentRegistrationBridge<TComponent> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 |
|---|---|
| BotComponent |
已淘汰.
可以 BotComponent 連接到傳承 ComponentRegistration系統。 (繼承來源 ComponentRegistrationBridge<TComponent>) |
方法
| 名稱 | Description |
|---|---|
| GetConverters(ResourceExplorer, SourceContext) |
已淘汰.
回傳支援載入宣告型別的 JsonConverters 列舉。 |
| GetDeclarativeTypes(ResourceExplorer) |
已淘汰.
回傳 KindRegistrations 的列舉 $kind => 類型。 |
| GetFromComponent<TRegistration>(IServiceCollection) |
已淘汰.
呼叫 啟動 以 BotComponent 取得一 |
| GetMemoryScopes() |
已淘汰.
取得記憶體範圍。 (繼承來源 ComponentRegistrationBridge<TComponent>) |
| GetPathResolvers() |
已淘汰.
傳回 pathresolvers 的列舉。 (繼承來源 ComponentRegistrationBridge<TComponent>) |