Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Target Property

SuppressMessageAttribute.Target Property

Gets or sets a fully qualified path that represents the target of the attribute.

Namespace:  System.Diagnostics.CodeAnalysis
Assemblies:   mscorlib (in mscorlib.dll)
  System.Diagnostics.Tools (in System.Diagnostics.Tools.dll)

'Declaration
Public Property Target As String

Property Value

Type: System.String
A fully qualified path that represents the target of the attribute.

The Target property is an optional argument identifying the analysis target of the attribute. An example value is "System.IO.Stream.ctor():System.Void". Because it is fully qualified, it can be long, particularly for targets such as parameters. The analysis tool user interface should be capable of automatically formatting the parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft