using System; namespace System.Diagnostics.CodeAnalysis { /// Suppresses reporting of a specific static analysis tool rule violation, allowing multiple suppressions on a single code artifact. // Token: 0x0200014A RID: 330 [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)] [Conditional("CODE_ANALYSIS")] public sealed class SuppressMessageAttribute : Attribute { /// Initializes a new instance of the class, specifying the category of the static analysis tool and the identifier for an analysis rule. /// The category for the attribute. /// The identifier of the analysis tool rule the attribute applies to. // Token: 0x060010CA RID: 4298 RVA: 0x00044E58 File Offset: 0x00043058 public SuppressMessageAttribute(string category, string checkId) { this.category = category; this.checkId = checkId; } /// Gets the category identifying the classification of the attribute. /// The category identifying the attribute. // Token: 0x170002CA RID: 714 // (get) Token: 0x060010CB RID: 4299 RVA: 0x00044E70 File Offset: 0x00043070 public string Category { get { return this.category; } } /// Gets the identifier of the static analysis tool rule to be suppressed. /// The identifier of the static analysis tool rule to be suppressed. // Token: 0x170002CB RID: 715 // (get) Token: 0x060010CC RID: 4300 RVA: 0x00044E78 File Offset: 0x00043078 public string CheckId { get { return this.checkId; } } /// Gets or sets the justification for suppressing the code analysis message. /// The justification for suppressing the message. // Token: 0x170002CC RID: 716 // (get) Token: 0x060010CD RID: 4301 RVA: 0x00044E80 File Offset: 0x00043080 // (set) Token: 0x060010CE RID: 4302 RVA: 0x00044E88 File Offset: 0x00043088 public string Justification { get { return this.justification; } set { this.justification = value; } } /// Gets or sets an optional argument expanding on exclusion criteria. /// A string containing the expanded exclusion criteria. // Token: 0x170002CD RID: 717 // (get) Token: 0x060010CF RID: 4303 RVA: 0x00044E94 File Offset: 0x00043094 // (set) Token: 0x060010D0 RID: 4304 RVA: 0x00044E9C File Offset: 0x0004309C public string MessageId { get { return this.messageId; } set { this.messageId = value; } } /// Gets or sets the scope of the code that is relevant for the attribute. /// The scope of the code that is relevant for the attribute. // Token: 0x170002CE RID: 718 // (get) Token: 0x060010D1 RID: 4305 RVA: 0x00044EA8 File Offset: 0x000430A8 // (set) Token: 0x060010D2 RID: 4306 RVA: 0x00044EB0 File Offset: 0x000430B0 public string Scope { get { return this.scope; } set { this.scope = value; } } /// Gets or sets a fully qualified path that represents the target of the attribute. /// A fully qualified path that represents the target of the attribute. // Token: 0x170002CF RID: 719 // (get) Token: 0x060010D3 RID: 4307 RVA: 0x00044EBC File Offset: 0x000430BC // (set) Token: 0x060010D4 RID: 4308 RVA: 0x00044EC4 File Offset: 0x000430C4 public string Target { get { return this.target; } set { this.target = value; } } // Token: 0x04000419 RID: 1049 private string category; // Token: 0x0400041A RID: 1050 private string checkId; // Token: 0x0400041B RID: 1051 private string justification; // Token: 0x0400041C RID: 1052 private string messageId; // Token: 0x0400041D RID: 1053 private string scope; // Token: 0x0400041E RID: 1054 private string target; } }