語言

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
屬性

備註

如需詳細資訊和範例,請參閱 資料庫提供者和延伸模組的實作 。

建構函式

名稱 Description
DesignTimeServicesReferenceAttribute(String, String)

初始化 DesignTimeServicesReferenceAttribute 類別的新執行個體。

DesignTimeServicesReferenceAttribute(String)

初始化 DesignTimeServicesReferenceAttribute 類別的新執行個體。

屬性

名稱 Description
ForProvider

取得應該新增這些服務的提供者名稱。 如果為 null,則會為所有提供者新增服務。

TypeName

取得型別的元件限定名稱,可用來將其他設計階段服務新增至 ServiceCollection 。 此類型應該實作 IDesignTimeServices 。

適用於