Method | Description | |
---|---|---|
Detach ( ) : void |
Detaches the temporary file: it will no more be automatically destroyed. When created short-lived (see FileAttributes.Temporary), this flag is not reset: the file will be destroyed by the Operating System on the bext reboot.
|
|
Dispose ( ) : void |
Attempts to delete the temporary file.
|
|
TemporaryFile ( ) : System |
Initializes a new short lived TemporaryFile.
|
|
TemporaryFile ( bool shortLived ) : System |
Initializes a new TemporaryFile. When shortLived is true, the FileAttributes.Temporary is set on the file.
|
|
TemporaryFile ( bool shortLived, string extension ) : System |
Initializes a new TemporaryFile with an extension. When shortLived is true, the FileAttributes.Temporary is set on the file. The file will have a name looking like : xxxx.tmp.extension When extension is ".", the final path will end with a ".". |
|
TemporaryFile ( string extension ) : System |
Initializes a new short lived TemporaryFile with an extension - the file will have a name looking like : xxxx.tmp.extension
|
Method | Description | |
---|---|---|
DeleteFile ( ) : bool |
public TemporaryFile ( bool shortLived ) : System | ||
shortLived | bool | True to set the |
return | System |
public TemporaryFile ( bool shortLived, string extension ) : System | ||
shortLived | bool | True to set the |
extension | string | Optional extension of the file (example : '.png' and 'png' would both work). |
return | System |
public TemporaryFile ( string extension ) : System | ||
extension | string | The extension of the file (example : '.png' and 'png' would both work) |
return | System |