Search Results for

    Show / Hide Table of Contents

    Constructor MaxBytesAttribute

    MaxBytesAttribute(Type, Int64)

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

    Declaration
    public MaxBytesAttribute(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 exist after the target method has been executed.

    Remarks

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

    MaxBytesAttribute(Type[], Int64)

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

    Declaration
    public MaxBytesAttribute(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 bytes that should exist after the target method has been executed.

    Remarks

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

    MaxBytesAttribute(String, Int64)

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

    Declaration
    public MaxBytesAttribute(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 bytes that should exist after the target method has been executed.

    Remarks

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

    MaxBytesAttribute(String[], Int64)

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

    Declaration
    public MaxBytesAttribute(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 bytes that should exist after the target method has been executed.

    Remarks

    For more information see AssertionsDefinition.MaxBytes(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