Idioma

AdviceAttribute Classe

Definição

Um atributo que pode ser usado para dar conselhos de programação a um usuário de uma função ou classe.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public class AdviceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
type AdviceAttribute = class
    inherit Attribute
Herança
AdviceAttribute
Derivado
Atributos

Comentários

As ferramentas de desenvolvimento podem exibir os conselhos durante a análise de código para sugerir melhorias.

Construtores

Nome Description
AdviceAttribute(String)

Cria um atributo de conselho com a mensagem especificada.

Propriedades

Nome Description
Message

Obtém o conselho de programação.

Aplica-se a