Search Results for

    Show / Hide Table of Contents

    Constructor NoInstancesAttribute

    NoInstancesAttribute(Type)

    Initializes a new instance of NoInstancesAttribute with the type of the instances that should be checked after the target method has been executed.

    Declaration
    public NoInstancesAttribute(Type type)
    Parameters
    Type Name Description
    System.Type type

    System.Type of the instances that should be checked.

    Remarks

    For more information see AssertionsDefinition.NoInstances(Type, Boolean) and AssertionAttribute.

    NoInstancesAttribute(Type[])

    Initializes a new instance of NoInstancesAttribute with the types of the instances that should be checked after the target method has been executed.

    Declaration
    public NoInstancesAttribute(Type[] types)
    Parameters
    Type Name Description
    System.Type[] types

    An array containing the System.Types of the instances that should be checked.

    Remarks

    For more information see AssertionsDefinition.NoInstances(Type[], Boolean) and AssertionAttribute.

    NoInstancesAttribute(String)

    Initializes a new instance of NoInstancesAttribute with the type name of the instances that should be checked after the target method has been executed.

    Declaration
    public NoInstancesAttribute(string typeName)
    Parameters
    Type Name Description
    System.String typeName

    Type name of the instances that should be checked.

    Remarks

    For more information see AssertionsDefinition.NoInstances(String, Boolean) and AssertionAttribute.

    NoInstancesAttribute(String[])

    Initializes a new instance of NoInstancesAttribute with the type of the instances that should be checked after the target method has been executed.

    Declaration
    public NoInstancesAttribute(string[] typeNames)
    Parameters
    Type Name Description
    System.String[] typeNames

    An array containing the type names of the instances that should be checked.

    Remarks

    For more information see AssertionsDefinition.NoInstances(String[], Boolean) and AssertionAttribute.

    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