Checks that no new instances of the specified types exists after
the target method has been executed.
Namespace:
SciTech.NetMemProfilerAssembly: MemProfiler2 (in MemProfiler2.dll)
Syntax
| C# |
|---|
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = true)] public sealed class NoNewInstancesAttribute : AssertionAttribute |
| Visual Basic |
|---|
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := True)> _ Public NotInheritable Class NoNewInstancesAttribute _ Inherits AssertionAttribute |
| Visual C++ |
|---|
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = true)] public ref class NoNewInstancesAttribute sealed : public AssertionAttribute |
Remarks
This attribute can be applied to methods to define that no new instances
of the specified types should exist after the method has been executed.
For more information see
AssertionsDefinition.NoNewInstances(array<Type>[]()[][], Boolean)
and AssertionAttribute.
Inheritance Hierarchy
System..::..Object
System..::..Attribute
SciTech.NetMemProfiler..::..AssertionAttribute
SciTech.NetMemProfiler..::..NoNewInstancesAttribute
System..::..Attribute
SciTech.NetMemProfiler..::..AssertionAttribute
SciTech.NetMemProfiler..::..NoNewInstancesAttribute
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.