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