Language

AdviceAttribute クラス

定義

関数またはクラスのユーザーにプログラミングのアドバイスを提供するために使用できる属性。

[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
継承
AdviceAttribute
派生
属性

注釈

開発ツールでは、コード分析中にアドバイスを表示して、改善を提案できます。

コンストラクター

Name 説明
AdviceAttribute(String)

指定されたメッセージを含むアドバイス属性を作成します。

プロパティ

Name 説明
Message

プログラミングに関するアドバイスを取得します。

適用対象