MemAssertionAssert Method (AssertionsDefinition, AssertionsThread)
SciTech.MemProfilerApi (in SciTech.MemProfilerApi.dll) Version: 126.96.36.199
public static bool Assert(
Public Shared Function Assert (
assertionsDefinition As AssertionsDefinition,
assertionsThread As AssertionsThread
) As Boolean
static bool Assert(
static member Assert :
assertionsDefinition : AssertionsDefinition *
assertionsThread : AssertionsThread -> bool
- Type: SciTech.NetMemProfilerAssertionsDefinition
Defines the expected memory usage. For more information, see AssertionsDefinition.
- Type: SciTech.NetMemProfilerAssertionsThread
Indicates whether instances of all threads should be checked,
or only instances created by the calling thread. If this parameter is AssertionsThread.All,
then instances of all threads will be checked. If it is AssertionsThread.Caller,
then only instances created by the calling thread will be checked.
If the current process is being profiled,
will be returned if the assertion succeeds, otherwise false
If the current process is not being profiled, no assertion is performed and true will always be returned.
Remarks See Also