ComponentRegistration クラス

定義

注意事項

Use BotComponent for new components.

ComponentRegistration は、コンポーネントから資産を検出するためのシグネチャ クラスです。

[System.Obsolete("Use `BotComponent` for new components.")]
public class ComponentRegistration
[<System.Obsolete("Use `BotComponent` for new components.")>]
type ComponentRegistration = class
Public Class ComponentRegistration
継承
ComponentRegistration
派生
属性

注釈

コンポーネントをシステムで使用できるようにするには、ComponentRegistration から派生し、機能を登録する適切なインターフェイスを実装します。 これらのコンポーネントは、必要なシステムによって適切な場所で使用されます。 たとえば、宣言型をシステムに追加するには、IComponentDeclarativeTypes を実装するクラスを追加するだけです。

public class MyComponentRegistration : IComponentDeclarativeTypes
{
    public IEnumerable<DeclarativeType>()
    {  
         yield return new DeclarativeType<MyType>("Contoso.MyType");
         ...
    }
}
startup.cs:
     ComponentRegistration.Add(new DeclarativeComponentRegistration()); 
     ComponentRegistration.Add(new MyComponentRegistration());

コンストラクター

ComponentRegistration()
古い.

ComponentRegistration は、コンポーネントから資産を検出するためのシグネチャ クラスです。

プロパティ

Components
古い.

登録されているすべての ComponentRegistration オブジェクトの一覧を取得します。

メソッド

Add(ComponentRegistration)
古い.

登録メソッドを実装するコンポーネントを追加します。

適用対象