Поделиться через


SuppressMessageAttribute.Target Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Diagnostics.CodeAnalysis
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Property Target As String
public string Target { get; set; }

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.