The following tables list the members exposed by TempFile.
Name | Description | |
---|---|---|
![]() | TempFile Constructor | Overloaded. |
Name | Description | |
---|---|---|
![]() | Exists | Returns true if the current temp file exists. |
![]() | Info | Returns the FileInfo object for this temp file. |
![]() | Length | Gets or sets the current length of the temp file. If setting the length on a file that does not exist one will be created. If getting the length of a file that doesnt exist zero will be returned. |
![]() | TempPath | Returns the temporary file path being managed. |
Name | Description | |
---|---|---|
![]() ![]() | Attach | Attaches a new instances of a TempFile to the provided file path |
![]() | CopyTo | Overloaded. Copies the file content to the specified target file name |
![]() | Create | Re-Creates and Opens the temporary file for writing, multiple calls will truncate existing data. |
![]() ![]() | CreateTempPath | Creates a temp file having the provided extension |
![]() ![]() | Delete | Overloaded. Safely delete the provided file name |
![]() | Detatch | Detatches this instance from the temporary file and returns the temp file's path |
![]() | Dispose | Overloaded. Disposes of the temporary file |
![]() ![]() | FromCopy | Creates a temp file having a copy of the specified file |
![]() ![]() | FromExtension | Creates a temp file having the provided extension |
![]() | Open | Open or Create the temporary file for reading and writing |
![]() | Read | Overloaded. Opens the temporary file for reading |
![]() | ReadAllBytes | Reads all bytes from the file |
![]() | ReadAllText | Reads all UTF8 text from the file |
![]() | WriteAllBytes | Writes all bytes to the file |
![]() | WriteAllText | Writes all UTF8 text to the file |