AdviceAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An attribute that can be used to give programming advice to a user of a function or class.
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Enum | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Delegate, Inherited=false)]
public class AdviceAttribute : Attribute
type AdviceAttribute = class
inherit Attribute
- Inheritance
-
AdviceAttribute
- Derived
- Attributes
Remarks
This attribute is intended to give developers some guidance as to what to do. The contents of the attribute are displayed by the IDE when the user is using a feature like code analysis to give hints as to how to improve the code.
Constructors
AdviceAttribute(String) |
Properties
Message |