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 : Attribute
[<System.AttributeUsage(System.AttributeTargets.Constructor)>]
type GeneratedActivatorConstructorAttribute = class
    inherit Attribute
Public NotInheritable Class GeneratedActivatorConstructorAttribute
Inherits Attribute
Inheritance
GeneratedActivatorConstructorAttribute
Attributes

Remarks

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

Constructors

GeneratedActivatorConstructorAttribute()

Initializes a new instance of the GeneratedActivatorConstructorAttribute class.

Applies to