ComponentRegistration クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
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) |
古い.
登録メソッドを実装するコンポーネントを追加します。 |