Defines that no new instances should exist when this definition is asserted using MemAssertion.Assert(MemSnapShot, AssertionsDefinition, AssertionsThread).

Namespace:  SciTech.NetMemProfiler
Assembly:  MemProfiler2 (in MemProfiler2.dll)

Syntax

C#
public void NoNewInstances()
Visual Basic
Public Sub NoNewInstances
Visual C++
public:
void NoNewInstances()

Remarks

Calling MemAssertion.Assert(MemSnapShot, AssertionsDefinition, AssertionsThread) using this AssertionsDefinition will fail if a new instance exists, unless the type is also included in a call to an AllowXXX or MaxXXX method.

See Also