AdviceAttribute Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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. |