BaseShadow Constructor (PrivateObject)
Initializes a new instance of the BaseShadow class.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Protected Sub New ( _
privateTarget As PrivateObject _
)
protected BaseShadow(
PrivateObject privateTarget
)
protected:
BaseShadow(
PrivateObject^ privateTarget
)
new :
privateTarget:PrivateObject -> BaseShadow
protected function BaseShadow(
privateTarget : PrivateObject
)
Parameters
privateTarget
Type: Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObjectObject to store at initialization.
Remarks
This constructor is meant for derived classes and assumes that the caller has created the PrivateObject instance and consumes it.
.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.