Язык

DesignTimeServicesReferenceAttribute Класс

Определение

Определяет, где найти дополнительные службы времени разработки.

Этот атрибут обычно используется расширениями времени разработки. Обычно он не используется в коде приложения.

[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
Наследование
DesignTimeServicesReferenceAttribute
Атрибуты

Комментарии

Дополнительные сведения и примеры см. в разделе "Реализация поставщиков баз данных и расширений ".

Конструкторы

Имя. Описание
DesignTimeServicesReferenceAttribute(String, String)

Инициализирует новый экземпляр класса DesignTimeServicesReferenceAttribute.

DesignTimeServicesReferenceAttribute(String)

Инициализирует новый экземпляр класса DesignTimeServicesReferenceAttribute.

Свойства

Имя. Описание
ForProvider

Возвращает имя поставщика, для которого должны быть добавлены эти службы. Если значение NULL, службы будут добавлены для всех поставщиков.

TypeName

Возвращает полное имя типа, который можно использовать для добавления дополнительных служб времени разработки в объект ServiceCollection. Этот тип должен реализовывать IDesignTimeServices.

Применяется к