次の方法で共有


DesignTimeServicesReferenceAttribute クラス

定義

追加のデザイン タイム サービスを検索する場所を識別します。

この属性は、通常、デザイン時の拡張機能で使用されます。 通常、アプリケーション コードでは使用されません。

[System.AttributeUsage(System.AttributeTargets.Assembly)]
public sealed class DesignTimeServicesReferenceAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class DesignTimeServicesReferenceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly)>]
type DesignTimeServicesReferenceAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type DesignTimeServicesReferenceAttribute = class
    inherit Attribute
Public NotInheritable Class DesignTimeServicesReferenceAttribute
Inherits Attribute
継承
DesignTimeServicesReferenceAttribute
属性

注釈

詳細と例については、「 データベース プロバイダーと拡張機能の実装 」を参照してください。

コンストラクター

DesignTimeServicesReferenceAttribute(String)

DesignTimeServicesReferenceAttribute クラスの新しいインスタンスを初期化します。

DesignTimeServicesReferenceAttribute(String, String)

DesignTimeServicesReferenceAttribute クラスの新しいインスタンスを初期化します。

プロパティ

ForProvider

これらのサービスを追加するプロバイダーの名前を取得します。 null の場合、すべてのプロバイダーにサービスが追加されます。

TypeName

に追加のデザインタイム サービスを追加するために使用できる型のアセンブリ修飾名を ServiceCollection取得します。 この型は を実装 IDesignTimeServicesする必要があります。

適用対象