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
'Usage
Dim instance As PrivateObject 
Dim value As Object 

value = instance.Target

instance.Target = value
public Object Target { get; set; }
public:
property Object^ Target {
    Object^ get ();
    void set (Object^ value);
}
public function get Target () : Object 
public function set Target (value : Object)

Property Value

Type: System.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

PrivateObject Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace