Initializes a new instance of AllowNewInstancesAttribute
with the types 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( Type[] types ) |
| Visual Basic |
|---|
Public Sub New ( _ types As Type() _ ) |
| Visual C++ |
|---|
public: AllowNewInstancesAttribute( array<Type^>^ types ) |
Parameters
- types
- Type: array<System..::..Type>[]()[][]
An array containing the Types of the instances that should be allowed.
Remarks
For more information see
AssertionsDefinition.AllowNewInstances(array<Type>[]()[][], Boolean) and
AssertionAttribute.