Click or drag to resize

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.
Inheritance Hierarchy
SystemObject
  MFiles.VAF.CommonAutoTempFile

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public class AutoTempFile : IDisposable

The AutoTempFile type exposes the following members.

Properties
  NameDescription
Public propertyIsValid
Resolves if the object encapsulates a controlled file path.
Public propertyPath
The controlled temporary folder.
Top
Methods
  NameDescription
Public methodStatic memberAttach
Attaches and takes ownership of an existing temporary file.
Public methodStatic memberCreate
Creates a automatically controlled temporary file.
Public methodDetach
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.
Public methodDispose
Deletes the temporary folder (with content).
Protected methodDispose(Boolean)
Deletes the temporary folder (with content).
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizer.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
The single empty instance.
Top
See Also