Editar

Compartir a través de


AdviceAttribute Class

Definition

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

Applies to