Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>An example of inline suppression would be similar to this - examine the namespaces in the code compared to the suppression</p> <pre><code>namespace Soapi { ///&lt;summary&gt; ///&lt;/summary&gt; ///&lt;param name = "message"&gt;&lt;/param&gt; ///&lt;param name = "statusCode"&gt;&lt;/param&gt; ///&lt;param name = "innerException"&gt;&lt;/param&gt; [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object)")] public ApiException(string message, ErrorCode statusCode, Exception innerException) : base(String.Format("{0}\r\nStatusCode:{1}", message, statusCode), innerException) { this.statusCode = statusCode; } </code></pre> <p>A global supression file is a file in the root of your project named <code>GlobalSuppressions.cs</code> and might look like this:</p> <pre><code>// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. // // To add a suppression to this file, right-click the message in the // Error List, point to "Suppress Message(s)", and click // "In Project Suppression File". // You do not need to add suppressions to this file manually. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)", Scope = "member", Target = "Soapi.ApiException.#.ctor(System.String,Soapi.ErrorCode,System.String,System.Exception)")] </code></pre> <p>And you can generate this code automatically by right-clicking on the warning.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload