PrivateObject Constructor (Type, Object)
Initializes a new instance of the PrivateObject class that creates the wrapper for the specified object.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
type is null.
type is not a RuntimeType.
type cannot be a TypeBuilder.
The constructor being called throws an exception.
type is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.
type is not a valid type.
No matching public constructor was found to match the type and args.
- 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.