Edit

Share via


AliasAttribute Class

Definition

When applied to a type or method, specifies a well-known name which can be used to identify that type or method.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct)]
public sealed class AliasAttribute : Attribute
C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true)]
public sealed class AliasAttribute : Attribute
Inheritance
AliasAttribute
Attributes

Remarks

In the case of a type, the alias must be globally unique. In the case of a method, the alias must be unique to the declaring type.

Constructors

AliasAttribute(String)

Initializes a new instance of the AliasAttribute class.

Properties

Alias

Gets the alias.

Applies to

Product Versions
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

See also