Share via


PrivateType Constructor (String, String)

Initializes a new instance of the PrivateType class.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    assemblyName As String, _
    typeName As String _
)
public PrivateType(
    string assemblyName,
    string typeName
)
public:
PrivateType(
    String^ assemblyName, 
    String^ typeName
)
new : 
        assemblyName:string * 
        typeName:string -> PrivateType
public function PrivateType(
    assemblyName : String, 
    typeName : String
)

Parameters

  • assemblyName
    Type: String

    assembly name

  • typeName
    Type: String

    fully qualified name of the type

Exceptions

Exception Condition
ArgumentException

assemblyName or typeName is nulla null reference (Nothing in Visual Basic) or empty.

.NET Framework Security

See Also

Reference

PrivateType Class

PrivateType Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace