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.

Definition

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

Properties

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

Methods

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)

Fields

Empty The single empty instance.

See Also