PrivateType Constructor (Type)
Initializes a new instance of the PrivateType class with the type information.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
type As Type _
)
public PrivateType(
Type type
)
public:
PrivateType(
Type^ type
)
new :
type:Type -> PrivateType
public function PrivateType(
type : Type
)
Parameters
type
Type: TypeThe wrapped Type to create.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | type is nulla null reference (Nothing in Visual Basic). |
Remarks
Creates a private type from the passed type object.
.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.