Search Results for

    Show / Hide Table of Contents

    Constructor MaxNewBytesAttribute

    MaxNewBytesAttribute(Type, Int64)

    Initializes a new instance of MaxNewBytesAttribute with the type of the instances that should be checked and the maximum number of new bytes allowed.

    Declaration
    public MaxNewBytesAttribute(Type type, long byteCount)
    Parameters
    Type Name Description
    System.Type type

    System.Type of the instances that should be checked.

    System.Int64 byteCount

    Defines the maximum number of new bytes that should exist after the target method has been executed.

    Remarks

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

    MaxNewBytesAttribute(Type[], Int64)

    Initializes a new instance of MaxNewBytesAttribute with the types of the instances that should be checked and the maximum number of new bytes allowed.

    Declaration
    public MaxNewBytesAttribute(Type[] types, long byteCount)
    Parameters
    Type Name Description
    System.Type[] types

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

    System.Int64 byteCount

    Defines the maximum number of new bytes that should exist after the target method has been executed.

    Remarks

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

    MaxNewBytesAttribute(String, Int64)

    Initializes a new instance of MaxNewBytesAttribute with the type name of the instances that should be checked and the maximum number of new bytes allowed.

    Declaration
    public MaxNewBytesAttribute(string typeName, long byteCount)
    Parameters
    Type Name Description
    System.String typeName

    Type name of the instances that should be checked.

    System.Int64 byteCount

    Defines the maximum number of new bytes that should exist after the target method has been executed.

    Remarks

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

    MaxNewBytesAttribute(String[], Int64)

    Initializes a new instance of MaxNewBytesAttribute with the type names of the instances that should be checked and the maximum number of new bytes allowed.

    Declaration
    public MaxNewBytesAttribute(string[] typeNames, long byteCount)
    Parameters
    Type Name Description
    System.String[] typeNames

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

    System.Int64 byteCount

    Defines the maximum number of new bytes that should exist after the target method has been executed.

    Remarks

    For more information see AssertionsDefinition.MaxNewBytes(String[], Boolean, Int64) 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