Class TempPath
An abstraction of a temporary path, such as a file.
public abstract class TempPath : IDisposable
- Inheritance
-
TempPath
- Implements
- Derived
- Inherited Members
Constructors
TempPath(string)
Initializes a new instance of the TempPath class.
protected TempPath(string prefix = null)
Parameters
prefixstringTemporary path prefix.
Properties
FullPath
Gets the absolute path of the TempPath.
public string FullPath { get; }
Property Value
Name
Gets the name of the TempPath.
public string Name { get; }
Property Value
Methods
Dispose()
Ensures the temporary path is deleted.
public void Dispose()
Dispose(bool)
Ensures the temporary path is deleted.
protected abstract void Dispose(bool disposing)
Parameters
disposingboolIf disposing.
~TempPath()
Finalizes an instance of the TempPath class.
protected ~TempPath()
InitializePath()
Subclasses should override and perform any path initialization here.
protected virtual void InitializePath()