Main Content

MathWorks.MATLAB.NET.Utility.NativeGCAttribute Class

Namespace: MathWorks.MATLAB.NET.Utility

Define custom assembly attribute that keeps track of native heap allocations for instances of MWArray classes


The NativeGCAttribute class defines a custom assembly attribute that keeps track of the native heap allocations for instances of the MWArray classes. When the specified or default memory allocation has been reached, the appropriate add/remove memory pressure method is called.

Namespace: MathWorks.MATLAB.NET.Utility

Assembly: MWArray (in MWArray.dll) Version: (


public class NativeGCAttribute : Attribute


expand all

Public Properties

This property is read-only.

The number of megabytes of native heap allocated to mxArrays that will result in a call to the add/remove memory pressure methods.

This property is read-only.

Returns true if the custom mxArray native heap garbage collector is enabled.

This property is read-only.

(Inherited from Attribute)


expand all

Inheritance Hierarchy


  • Mathworks.MATLAB.NET.Utility

    • Mathworks.MATLAB.NET.Utility.Images

    • Mathworks.MATLAB.NET.Utility.LOGFILEAttribute

    • Mathworks.MATLAB.NET.Utility.MATLABSignature

    • Mathworks.MATLAB.NET.Utility.MCRVersion

    • Mathworks.MATLAB.NET.Utility.MWCTFStreamReader

    • Mathworks.MATLAB.NET.Utility.MWException

    • Mathworks.MATLAB.NET.Utility.MWMCR

    • Mathworks.MATLAB.NET.Utility.NativeGCAttribute

    • Mathworks.MATLAB.NET.Utility.NOJVMAttribute

Version History

Introduced in R2006a