Search Results for

    Show / Hide Table of Contents

    Constructor MaxAllocatedBytesAttribute

    MaxAllocatedBytesAttribute(Type, Int64)

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

    Declaration
    public MaxAllocatedBytesAttribute(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 bytes that should be allocated by the target method.

    Remarks

    For more information see AssertionsDefinition.MaxAllocatedBytes and AssertionAttribute.

    MaxAllocatedBytesAttribute(Type[], Int64)

    Declaration
    public MaxAllocatedBytesAttribute(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

    MaxAllocatedBytesAttribute(String, Int64)

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

    Type name of the instances that should be checked.

    System.Int64 byteCount

    MaxAllocatedBytesAttribute(String[], Int64)

    Declaration
    public MaxAllocatedBytesAttribute(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
    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