UnconditionalSuppressMessageAttribute クラス

定義

特定のルール違反の報告を非表示にし、1 つのコードの成果物で複数の非表示を可能にします。

public ref class UnconditionalSuppressMessageAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.All, AllowMultiple=true, Inherited=false)]
public sealed class UnconditionalSuppressMessageAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.All, AllowMultiple=true, Inherited=false)>]
type UnconditionalSuppressMessageAttribute = class
    inherit Attribute
Public NotInheritable Class UnconditionalSuppressMessageAttribute
Inherits Attribute
継承
UnconditionalSuppressMessageAttribute
属性

注釈

UnconditionalSuppressMessageAttributeは、 を持ConditionalAttributeたない点で とは異なりますSuppressMessageAttribute。 コンパイル済みアセンブリでは常に保持されます。 詳細については、「 トリミング警告の概要 」および「 AOT 警告の概要」を参照してください。

コンストラクター

UnconditionalSuppressMessageAttribute(String, String)

ツールのカテゴリおよび分析規則の識別子を指定して、UnconditionalSuppressMessageAttribute クラスの新しいインスタンスを初期化します。

プロパティ

Category

属性の分類を識別するカテゴリを取得します。

CheckId

非表示にする分析ツール規則の識別子を取得します。

Justification

コード分析メッセージの抑制に関する位置合わせを取得または設定します。

MessageId

除外条件を拡張するオプション引数を取得または設定します。

Scope

属性に関係するコードのスコープを取得または設定します。

Target

属性のターゲットを表す絶対パスを取得または設定します。

TypeId

派生クラスで実装されると、この Attribute の一意の識別子を取得します。

(継承元 Attribute)

メソッド

Equals(Object)

このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。

(継承元 Attribute)
GetHashCode()

このインスタンスのハッシュ コードを返します。

(継承元 Attribute)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()

派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。

(継承元 Attribute)
Match(Object)

派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください