Disposable class to create a temporary directory and delete it again when disposed.
More...
|
virtual void | Dispose (bool disposing) |
|
|
string | Path [get] |
| The fully qualified path of the temporary directory. More...
|
|
Disposable class to create a temporary directory and delete it again when disposed.
◆ TemporaryDirectory()
NanoByte.Common.Storage.TemporaryDirectory.TemporaryDirectory |
( |
[Localizable(false)] string |
prefix | ) |
|
|
inline |
Creates a uniquely named, empty temporary directory on disk.
- Parameters
-
prefix | A short string the directory name should start with. |
- Exceptions
-
IOException | A problem occurred while creating a directory in System.IO.Path.GetTempPath. |
UnauthorizedAccessException | Creating a directory in System.IO.Path.GetTempPath is not permitted. |
◆ Dispose()
void NanoByte.Common.Storage.TemporaryDirectory.Dispose |
( |
| ) |
|
|
inline |
Deletes the temporary directory.
◆ Path
string NanoByte.Common.Storage.TemporaryDirectory.Path |
|
get |
The fully qualified path of the temporary directory.
The documentation for this class was generated from the following file:
- Common/Storage/TemporaryDirectory.cs