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
Afficher le fichier Open project: Microsoft/sarif-sdk Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
DisposeImplementation ( ) : void
TempFile ( string requestedExtension ) : System

Method Details

CreateTempName() public static méthode

Creates temporary path name.
public static CreateTempName ( ) : string
Résultat string

Dispose() public méthode

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
Résultat void

TempFile() public méthode

Initializes a new instance of the TempFile class.
public TempFile ( ) : System
Résultat System