Initializes a new instance of AllowNewInstancesAttribute
with the type names of the instances that should be allowed
when the target method has been executed.
Namespace:
SciTech.NetMemProfilerAssembly: MemProfiler2 (in MemProfiler2.dll)
Syntax
| C# |
|---|
public AllowNewInstancesAttribute( string[] typeNames ) |
| Visual Basic |
|---|
Public Sub New ( _ typeNames As String() _ ) |
| Visual C++ |
|---|
public: AllowNewInstancesAttribute( array<String^>^ typeNames ) |
Parameters
- typeNames
- Type: array<System..::..String>[]()[][]
An array containing the type names of the instances that should be allowed.
Remarks
For more information see
AssertionsDefinition.AllowNewInstances(array<String>[]()[][], Boolean) and
AssertionAttribute.