Deletes the specified temporary file.
public static bool DeleteTemporaryFile(string fileName)
Public Shared Function DeleteTemporaryFile(ByVal fileName As String) As Boolean
public:static bool DeleteTemporaryFile(String^ fileName)
fileName
String containing the filename to delete.
true, if the specified temporary file was deleted; otherwise, false.
Use this method to delete temporary files created by RasterDefaults.GetTemporaryFileName.
✅ IMPORTANT
You must call this method to delete temporary files if RasterDefaults.TempFileMode is set to LeadTempFileMode.Memory or LeadTempFileMode.DiskAndMemory to avoid memory leaks.
using Leadtools;using Leadtools.Codecs;public static void DeleteTemporaryFile_Example(){String tempFile = RasterDefaults.GetTemporaryFileName();/* do something with the temp file */RasterDefaults.DeleteTemporaryFile(tempFile); /* Delete tempFile when you are done with it */}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingPublic Shared Sub DeleteTemporaryFileTest()Dim tempFile As String = RasterDefaults.GetTemporaryFileName' do something with the temp fileRasterDefaults.DeleteTemporaryFile(tempFile) ' Delete tempFile when you are done with itEnd Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
