Switching off code analysis warning for a specific method

R

Robin Tucker

Hi,

Is it possible using an attribute (so some other mechanism) to selectively
switch off a code analysis warning on a specific method? I can only see how
to switch on or off warnings for the entire compile.

Thanks
 
R

Robin Tucker

I found it, something like:

[Scope:SuppressMessage("Rule Category", "Rule Id", "Justification",
"MessageId", "Scope", "Target")]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top