DeclarativeComponentRegistrationBridge<TComponent> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DeclarativeComponentRegistrationBridge<TComponent>()
初始化 DeclarativeComponentRegistrationBridge<TComponent> 類別的新執行個體。
public DeclarativeComponentRegistrationBridge ();
Public Sub New ()
適用於
DeclarativeComponentRegistrationBridge<TComponent>(TComponent, IConfiguration)
初始化 DeclarativeComponentRegistrationBridge<TComponent> 類別的新執行個體。
public DeclarativeComponentRegistrationBridge (TComponent botComponent, Microsoft.Extensions.Configuration.IConfiguration configuration = default);
new Microsoft.Bot.Builder.Dialogs.Declarative.Obsolete.DeclarativeComponentRegistrationBridge<'Component (requires 'Component :> Microsoft.Bot.Builder.BotComponent and 'Component : (new : unit -> 'Component))> : 'Component * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Bot.Builder.Dialogs.Declarative.Obsolete.DeclarativeComponentRegistrationBridge<'Component (requires 'Component :> Microsoft.Bot.Builder.BotComponent and 'Component : (new : unit -> 'Component))>
Public Sub New (botComponent As TComponent, Optional configuration As IConfiguration = Nothing)
參數
- botComponent
- TComponent
BotComponent 要公開為舊版 ComponentRegistration 。
- configuration
- IConfiguration
目標 的 BotComponent 選擇性 IConfiguration 。