AutoTempFolder Class

A class to create and hold the ownership of a temporary folder. The temporary folder 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 AutoTempFolder
Inheritance
Object    AutoTempFolder

Properties

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

Methods

Attach Attaches and takes ownership of an existing temporary folder.
Create Creates a automatically controlled temporary folder.
Detach Detaches the temporary folder from the object, so that the object doesn't control the folder any longer. The caller receives the ownership of the folder.
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