Share via


PrivateObject.Target Property

Gets or sets the wrapped object.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Property Target As Object
public Object Target { get; set; }
public:
property Object^ Target {
    Object^ get ();
    void set (Object^ value);
}
member Target : Object with get, set
function get Target () : Object 
function set Target (value : Object)

Property Value

Type: Object
The wrapped object.

Exceptions

Exception Condition
ArgumentNullException

Try to set this property to nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace