Target Property
Collapse the table of content
Expand the table of content

SuppressMessageAttribute.Target Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Diagnostics.CodeAnalysis
Assembly:  mscorlib (in mscorlib.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 that identifies the analysis target of the attribute. An example value is "System.IO.Stream.ctor():System.Void". Because the path 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft