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: System.String
assembly name
- typeName
Type: System.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
- 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.