C# 클래스 RadioDld.TempFile

Handle generating temporary file names and guarantee that any files with those names will be cleaned up.
상속: Database, IDisposable
파일 보기 프로젝트 열기: ribbons/RadioDownloader

공개 메소드들

메소드 설명
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