Udostępnij przez


DesignTimeServicesReferenceAttribute Klasa

Definicja

Określa, gdzie znaleźć dodatkowe usługi czasu projektowania.

Ten atrybut jest zwykle używany przez rozszerzenia czasu projektowania. Zwykle nie jest on używany w kodzie aplikacji.

[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
Dziedziczenie
DesignTimeServicesReferenceAttribute
Atrybuty

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Implementacja dostawców i rozszerzeń bazy danych .

Konstruktory

DesignTimeServicesReferenceAttribute(String)

Inicjuje nowe wystąpienie klasy DesignTimeServicesReferenceAttribute.

DesignTimeServicesReferenceAttribute(String, String)

Inicjuje nowe wystąpienie klasy DesignTimeServicesReferenceAttribute.

Właściwości

ForProvider

Pobiera nazwę dostawcy, dla którego należy dodać te usługi. Jeśli ma wartość null, usługi zostaną dodane dla wszystkich dostawców.

TypeName

Pobiera kwalifikowaną przez zestaw nazwę typu, który może służyć do dodawania dodatkowych usług czasu projektowania do klasy ServiceCollection. Ten typ powinien implementować IDesignTimeServices.

Dotyczy