ILNumerics Ultimate VS

H5FileDispose Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Flushes any unwritten data and closes the underlying HDF5 file. This method does not delete any data from the HDF5 file.

[ILNumerics HDF5 Module]

Namespace:  ILNumerics.IO.HDF5
Assembly:  ILNumerics.IO.HDF5 (in ILNumerics.IO.HDF5.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public void Dispose()

Implements

IDisposableDispose
Remarks

After the H5File has been disposed, it cannot be used to access the underlying file anymore. Hence, calling Dispose should be the last action on a H5File.

It is recommended, to use the

using
construct on C# in order to handle creation and disposal of H5File objects.

Examples

using (var file = new H5File("myFile.h5")) {
                // access the file here...
                Array<double> A = file["path/to"].Datasets["myDataset1"].GetArray<double>(); 
                // ...

                // once the using block is left, file will be disposed automatically. 
                // Hence, there is no need to call file.<see cref="M:System.IDisposable.Dispose" /> explicitly. 
            }

[ILNumerics HDF5 Module]

See Also

Reference