Skip to content

AliasAttribute Constructors

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

AliasAttribute(string)

View source
public AliasAttribute(string alias)
Initializes a new instance of the AliasAttribute class.

Parameters

aliasstring
The alias.

Exceptions

System.ArgumentNullException
alias is null.
System.ArgumentException
alias is empty, contains a quote, whitespace, a control character, or a reserved type-name delimiter, or has an invalid generic arity suffix.