AutoTempFile Class

A class to create and hold the ownership of a temporary file. The temporary file is deleted when the class instance is disposed.


Namespace: MFiles.VAF.Common
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
public class AutoTempFile
Object    AutoTempFile


IsValid Resolves if the object encapsulates a controlled file path.
Path The controlled temporary folder.


Attach Attaches and takes ownership of an existing temporary file.
Create Creates a automatically controlled temporary file.
Detach Detaches the temporary file from the object, so that the object doesn't control the file any longer. The caller receives the ownership of the file.
Dispose Deletes the temporary folder (with content).
Dispose(Boolean) Deletes the temporary folder (with content).
Finalize Finalizer.
(Overrides ObjectFinalize)


Empty The single empty instance.

See Also