Class AliasAttribute
Specifies the property/field name that is used for dependency injection.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class AliasAttribute : Attribute
- Inheritance
-
AliasAttribute
- Inherited Members
Constructors
AliasAttribute(string)
Initializes a new instance of AliasAttribute with the specified identifier.
public AliasAttribute(string identifier)
Parameters
identifier
stringName that is used for dependency injection.
Properties
Identifier
Name that is used for dependency injection.
public string Identifier { get; }