Bahasa

GeneratedActivatorConstructorAttribute Kelas

Definisi

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.

Berlaku untuk