Search Results for

    Show / Hide Table of Contents

    Method NoNewInstances

    NoNewInstances()

    This NoNewInstances method will assert that no live instances, created by the calling thread, exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot.

    Declaration
    public static bool NoNewInstances()
    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(AssertionsThread)

    This NoNewInstances assertion takes a single AssertionsThread parameter. It will assert that no live instances exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(Type)

    This NoNewInstances assertion will assert that no live instances of the specified Type exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot.

    Declaration
    public static bool NoNewInstances(Type type)
    Parameters
    Type Name Description
    System.Type type

    The Type of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(Type, Boolean)

    This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally its subclasses) exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot.

    Declaration
    public static bool NoNewInstances(Type type, bool includeSubclasses)
    Parameters
    Type Name Description
    System.Type type

    The base Type of the instances to check.

    System.Boolean includeSubclasses

    Indicates whether instances of subclasses of the specified type should be included in the assertion.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(Type, Boolean, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally its subclasses) exists on the GC heap that did not exist on the GC heap at the time of last call to FastSnapshot(Boolean) or MemProfiler.FullSnapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(Type type, bool includeSubclasses, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    System.Type type

    Identifies the base System.Type of the instances to check.

    System.Boolean includeSubclasses

    Indicates whether instances of subclasses of the specified type should be included in the assertion.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(Type, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Type exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(Type type, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    System.Type type

    Identifies the System.Type of the instances to check.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(String)

    This NoNewInstances assertion will assert that no live instances of the type with the specified name exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot.

    Declaration
    public static bool NoNewInstances(string type)
    Parameters
    Type Name Description
    System.String type

    Identifies the type of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    Remarks

    The type name can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace).

    NoNewInstances(String, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the type with the specified name exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(string type, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    System.String type

    Identifies the type of the instances to check.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    Remarks

    The type name can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace).

    NoNewInstances(Type[])

    This NoNewInstances assertion will assert that no live instances of the specified Types exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot.

    Declaration
    public static bool NoNewInstances(Type[] types)
    Parameters
    Type Name Description
    System.Type[] types

    Identified the Types of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(Type[], Boolean)

    This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally their subclasses) exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot.

    Declaration
    public static bool NoNewInstances(Type[] types, bool includeSubclasses)
    Parameters
    Type Name Description
    System.Type[] types

    Identifies the base Types of the instances to check.

    System.Boolean includeSubclasses

    Indicates whether instances of subclasses of the specified Types should be included in the assertion.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(Type[], Boolean, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally their subclasses) exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(Type[] types, bool includeSubclasses, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    System.Type[] types

    Identifies the base System.Types of the instances to check.

    System.Boolean includeSubclasses

    Indicates whether instances of subclasses of the specified Types should be included in the assertion.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(Type[], AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Types exists on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(Type[] types, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    System.Type[] types

    Identifies the System.Types of the instances to check.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(String[])

    This NoNewInstances assertion will assert that no live instances of the types with the specified names exist on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot.

    Declaration
    public static bool NoNewInstances(string[] types)
    Parameters
    Type Name Description
    System.String[] types

    Identified the types of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    Remarks

    The type name can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace).

    NoNewInstances(String[], AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the types with the specified names exist on the GC heap that did not exist on the GC heap at the time of last call to MemProfiler.FastSnapshot or MemProfiler.FullSnapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(string[] types, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    System.String[] types

    Identifies the types of the instances to check.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot)

    This NoNewInstances method will assert that no live instances, created by the calling thread, exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, AssertionsThread)

    This NoNewInstances method will assert that no live instances exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, Type)

    This NoNewInstances assertion will assert that no live instances of the specified Type exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type type)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type type

    The Type of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, Type, Boolean)

    This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally its subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type type, bool includeSubclasses)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type type

    The base Type of the instances to check.

    System.Boolean includeSubclasses

    Indicates whether instances of subclasses of the specified type should be included in the assertion.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, Type, Boolean, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally its subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type type, bool includeSubClasses, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type type

    Identifies the base System.Type of the instances to check.

    System.Boolean includeSubClasses

    Indicates whether instances of subclasses of the specified type should be included in the assertion.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, Type, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Type exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type type, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type type

    Identifies the System.Type of the instances to check.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, String)

    This NoNewInstances assertion will assert that no live instances of the type with the specified name exist on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, string type)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.String type

    The Type of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    Remarks

    The type name can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace).

    NoNewInstances(MemSnapshot, String, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the type with the specified name exist on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, string type, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.String type

    Identifies the type of the instances to check.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    Remarks

    The type name can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace).

    NoNewInstances(MemSnapshot, Type[])

    This NoNewInstances assertion will assert that no live instances of the specified Types exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type[] types)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type[] types

    Identified the Types of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, Type[], Boolean)

    This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally their subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type[] types, bool includeSubclasses)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type[] types

    Identifies the base Types of the instances to check.

    System.Boolean includeSubclasses

    Indicates whether instances of subclasses of the specified Types should be included in the assertion.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, Type[], Boolean, AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally their subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type[] types, bool includeSubclasses, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type[] types

    Identifies the base System.Types of the instances to check.

    System.Boolean includeSubclasses

    Indicates whether instances of subclasses of the specified Types should be included in the assertion.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, Type[], AssertionsThread)

    This NoNewInstances assertion will assert that no live instances of the specified Types exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, Type[] types, AssertionsThread assertionsThread)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.Type[] types

    Identifies the System.Types of the instances to check.

    AssertionsThread assertionsThread

    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.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    NoNewInstances(MemSnapshot, String[])

    This NoNewInstances assertion will assert that no live instances of the types with the specified names exist on the GC heap that did not exist on the GC heap at the time of the comparison snapshot.

    Declaration
    public static bool NoNewInstances(MemSnapshot comparisonSnapshot, string[] types)
    Parameters
    Type Name Description
    MemSnapshot comparisonSnapshot

    Identifies the snapshot to use as the comparison snapshot. Instances that did not exist at the time of the comparison snapshot, are considered to be new instances.

    System.String[] types

    Identified the types of the instances to check.

    Returns
    Type Description
    System.Boolean

    If the current process is being profiled, true will be returned if the assertion succeeds, otherwise false will be returned.

    If the current process is not being profiled, no assertion is performed and true will always be returned.

    Remarks

    The type name can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace).

    In This Article
    Back to top

    © Copyright 2002-2020. SciTech Software AB.
    For information about .NET Memory Profiler, see the product site at https://memprofiler.com