GeneratedActivatorConstructorAttribute Класс

Определение

При применении к конструктору указывает, что созданные реализации активатора должны использовать этот конструктор при активации экземпляров.

[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
Наследование
GeneratedActivatorConstructorAttribute
Наследование
GeneratedActivatorConstructorAttribute
Атрибуты

Комментарии

Этот атрибут можно использовать для вызова конструкторов, которым требуются внедренные зависимости.

Конструкторы

Имя Описание
GeneratedActivatorConstructorAttribute()

Инициализирует новый экземпляр класса GeneratedActivatorConstructorAttribute.

Применяется к