语言

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

获取可用于向 a ServiceCollection添加其他设计时服务的类型的程序集限定名称。 此类型应实现 IDesignTimeServices。

适用于