Condividi tramite


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: Type

    The 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

See Also

Reference

PrivateType Class

PrivateType Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace