C# Класс RadioDld.TempFile

Handle generating temporary file names and guarantee that any files with those names will be cleaned up.
Наследование: Database, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Delete the temporary file at the path given by FilePath. If the file is in use it will be cleaned up the next time a temporary file is created or deleted after it becomes free.

TempFile ( string fileExtension ) : System

Initializes a new instance of the TempFile class and generates a temporary file name with the specified extension.

Приватные методы

Метод Описание
DeleteFiles ( ) : void
Dispose ( bool disposing ) : void
TempFile ( ) : System

Initializes static members of the TempFile class. Any file names still listed in the database are attempted to be deleted.

Описание методов

Dispose() публичный Метод

Delete the temporary file at the path given by FilePath. If the file is in use it will be cleaned up the next time a temporary file is created or deleted after it becomes free.
public Dispose ( ) : void
Результат void

TempFile() публичный Метод

Initializes a new instance of the TempFile class and generates a temporary file name with the specified extension.
public TempFile ( string fileExtension ) : System
fileExtension string The extension of the file, not including a leading dot.
Результат System