Edit

Share via


GeneratedActivatorConstructorAttribute Class

Definition

When applied to a constructor, indicates that generated activator implementations should use that constructor when activating instances.

[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
Inheritance
GeneratedActivatorConstructorAttribute
Inheritance
GeneratedActivatorConstructorAttribute
Attributes

Remarks

This attribute can be used to call constructors which require injected dependencies.

Constructors

Name Description
GeneratedActivatorConstructorAttribute()

Initializes a new instance of the GeneratedActivatorConstructorAttribute class.

Applies to