Condividi tramite


AliasAttribute Classe

Definizione

Se applicato a un tipo o a un metodo, specifica un nome noto che può essere utilizzato per identificare tale tipo o metodo.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true)]
public sealed class AliasAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct)]
public sealed class AliasAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true)>]
type AliasAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct)>]
type AliasAttribute = class
    inherit Attribute
Public NotInheritable Class AliasAttribute
Inherits Attribute
Ereditarietà
AliasAttribute
Attributi

Commenti

Nel caso di un tipo, l'alias deve essere univoco a livello globale. Nel caso di un metodo, l'alias deve essere univoco per il tipo dichiarante.

Costruttori

Nome Descrizione
AliasAttribute(String)

Inizializza una nuova istanza della classe AliasAttribute.

Proprietà

Nome Descrizione
Alias

Ottiene l'alias.

Si applica a

Vedi anche