AdviceAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
関数またはクラスのユーザーにプログラミングのアドバイスを提供するために使用できる属性。
[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 |
プログラミングに関するアドバイスを取得します。 |