Target Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the target type for the attribute.

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

public Type Target { get; set; }

Property Value

Type: System..::..Type
The target type for the attribute.

ExceptionCondition
ArgumentNullException

Target is set to nullNothingnullptrunita null reference (Nothing in Visual Basic).

Use this property to specify the target type when the attribute is used at the assembly level.

Show: