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 the instance of test class. Defined only in test methods.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property Instance As Object
public Object Instance { get; }
public:
property Object^ Instance {
Object^ get ();
}
member Instance : Object with get
function get Instance () : Object
Property Value
Type: Object
The instance of test class. Defined only in test methods.
Remarks
This property is defined only in Test methods.
.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.