C# Class Microsoft.CodeAnalysis.Sarif.Driver.TempFile

Temporary file class; implements IDisposable to ensure an effort is made to delete the temporary file in the face of exceptions. If you need a directory or set of files instead of a file, use the TempDirectory class instead.
Inheritance: IDisposable
Mostra file Open project: Microsoft/sarif-sdk Class Usage Examples

Public Methods

Method Description
CreateTempName ( ) : string

Creates temporary path name.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Makes a best-effort attempt to delete the temporary file.

TempFile ( ) : System

Initializes a new instance of the TempFile class.

Private Methods

Method Description
DisposeImplementation ( ) : void
TempFile ( string requestedExtension ) : System

Method Details

CreateTempName() public static method

Creates temporary path name.
public static CreateTempName ( ) : string
return string

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Makes a best-effort attempt to delete the temporary file.
public Dispose ( ) : void
return void

TempFile() public method

Initializes a new instance of the TempFile class.
public TempFile ( ) : System
return System