DesignTimeServicesReferenceAttribute Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Určuje, kde najít další služby času návrhu.
Tento atribut se obvykle používá rozšířeními času návrhu. Obvykle se nepoužívá v kódu aplikace.
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class DesignTimeServicesReferenceAttribute : Attribute
[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, AllowMultiple=true)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type DesignTimeServicesReferenceAttribute = class
inherit 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
- Dědičnost
-
DesignTimeServicesReferenceAttribute
- Atributy
Poznámky
Další informace a příklady najdete v tématu Implementace poskytovatelů databází a rozšíření .
Konstruktory
| Název | Description |
|---|---|
| DesignTimeServicesReferenceAttribute(String, String) |
Inicializuje novou instanci DesignTimeServicesReferenceAttribute třídy. |
| DesignTimeServicesReferenceAttribute(String) |
Inicializuje novou instanci DesignTimeServicesReferenceAttribute třídy. |
Vlastnosti
| Název | Description |
|---|---|
| ForProvider |
Získá název poskytovatele, pro kterého mají být tyto služby přidány. Pokud má hodnotu null, služby se přidají pro všechny poskytovatele. |
| TypeName |
Získá sestavení-kvalifikovaný název typu, který lze použít k přidání další návrh časové služby do .ServiceCollection Tento typ by měl implementovat IDesignTimeServices. |