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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.