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

Namespace:  SciTech.NetMemProfiler
Assembly:  MemProfiler2 (in MemProfiler2.dll)

Syntax

C#
public MaxBytesAttribute(
	string typeName,
	long byteCount
)
Visual Basic
Public Sub New ( _
	typeName As String, _
	byteCount As Long _
)
Visual C++
public:
MaxBytesAttribute(
	String^ typeName, 
	long long byteCount
)

Parameters

typeName
Type: System..::..String
Type name of the instances that should be checked.
byteCount
Type: System..::..Int64
Defines the maximum number of bytes that should exist after the target method has been executed.

Remarks

See Also