Click or drag to resize

TempFile Class

Generates a globally unique temporary file name and then ensures that the file is removed when the instance is disposed.
Inheritance Hierarchy
SystemObject
  Neon.IOTempFile

Namespace:  Neon.IO
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.1.0
Syntax
public sealed class TempFile : IDisposable

The TempFile type exposes the following members.

Constructors
  NameDescription
Public methodTempFile
Constructor.
Top
Properties
  NameDescription
Public propertyName
Returns the file name only.
Public propertyPath
Returns the fully qualified path to the temporary file.
Public propertyStatic memberRoot
Optionally specifies the root directory where the temporary files will be created. This defaults to GetTempPath when this is null or empty and can be overridden for specific instances by passing a folder path the the constructor.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also