Język

AdviceAttribute Klasa

Definicja

Atrybut, który może służyć do udzielania porad programistycznych użytkownikowi funkcji lub klasy.

[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
Dziedziczenie
AdviceAttribute
Pochodne
Atrybuty

Uwagi

Narzędzia programistyczne mogą wyświetlać porady podczas analizy kodu w celu sugerowania ulepszeń.

Konstruktory

Nazwisko Opis
AdviceAttribute(String)

Tworzy atrybut porady z określonym komunikatem.

Właściwości

Nazwisko Opis
Message

Pobiera porady programistyczne.

Dotyczy