Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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)
Syntax
'Declaration
Public Property Target As Type
public Type Target { get; set; }
public:
property Type^ Target {
Type^ get ();
void set (Type^ value);
}
member Target : Type with get, set
function get Target () : Type
function set Target (value : Type)
Property Value
Type: System. . :: . .Type
The target type for the attribute.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Target is set to null Nothing nullptr unit a null reference (Nothing in Visual Basic) . |
Remarks
Use this property to specify the target type when the attribute is used at the assembly level.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.