Bahasa

DesignTimeServicesReferenceAttribute Kelas

Definisi

Mengidentifikasi tempat menemukan layanan waktu desain tambahan.

Atribut ini biasanya digunakan oleh ekstensi waktu desain. Ini umumnya tidak digunakan dalam kode aplikasi.

[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
Warisan
DesignTimeServicesReferenceAttribute
Atribut

Keterangan

Lihat Implementasi penyedia dan ekstensi database untuk informasi dan contoh selengkapnya.

Konstruktor

Nama Deskripsi
DesignTimeServicesReferenceAttribute(String, String)

Menginisialisasi instans baru dari kelas DesignTimeServicesReferenceAttribute.

DesignTimeServicesReferenceAttribute(String)

Menginisialisasi instans baru dari kelas DesignTimeServicesReferenceAttribute.

Properti

Nama Deskripsi
ForProvider

Mendapatkan nama penyedia tempat layanan ini harus ditambahkan. Jika null, layanan akan ditambahkan untuk semua penyedia.

TypeName

Mendapatkan nama jenis yang memenuhi syarat rakitan yang dapat digunakan untuk menambahkan layanan waktu desain tambahan ke ServiceCollection. Jenis ini harus mengimplementasikan IDesignTimeServices.

Berlaku untuk