C# Class NanoByte.Common.Storage.TemporaryFile

Disposable class to create a temporary file and delete it again when disposed.
Inheritance: IDisposable
Exibir arquivo Open project: nano-byte/common Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Dispose ( ) : void

Deletes the temporary file.

TemporaryFile ( [ prefix ) : System

Creates a uniquely named, empty temporary file on disk.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public method

Deletes the temporary file.
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

TemporaryFile() public method

Creates a uniquely named, empty temporary file on disk.
A problem occurred while creating a file in . Creating a file in is not permitted.
public TemporaryFile ( [ prefix ) : System
prefix [ A short string the directory name should start with.
return System