GeneratedActivatorConstructorAttribute Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Saat diterapkan ke konstruktor, menunjukkan bahwa implementasi aktivator yang dihasilkan harus menggunakan konstruktor tersebut saat mengaktifkan instans.
[System.AttributeUsage(System.AttributeTargets.Constructor)]
public sealed class GeneratedActivatorConstructorAttribute : Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructorAttribute
[System.AttributeUsage(System.AttributeTargets.Constructor)]
public sealed class GeneratedActivatorConstructorAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Constructor)>]
type GeneratedActivatorConstructorAttribute = class
inherit ActivatorUtilitiesConstructorAttribute
[<System.AttributeUsage(System.AttributeTargets.Constructor)>]
type GeneratedActivatorConstructorAttribute = class
inherit Attribute
Public NotInheritable Class GeneratedActivatorConstructorAttribute
Inherits ActivatorUtilitiesConstructorAttribute
Public NotInheritable Class GeneratedActivatorConstructorAttribute
Inherits Attribute
- Warisan
-
GeneratedActivatorConstructorAttribute
- Warisan
-
GeneratedActivatorConstructorAttribute
- Atribut
Keterangan
Atribut ini dapat digunakan untuk memanggil konstruktor yang memerlukan dependensi yang disuntikkan.
Konstruktor
| Nama | Deskripsi |
|---|---|
| GeneratedActivatorConstructorAttribute() |
Menginisialisasi instans baru kelas GeneratedActivatorConstructorAttribute. |