The following tables list the members exposed by ReplaceFile.
Name | Description | |
---|---|---|
![]() | ReplaceFile Constructor | Overloaded. |
Name | Description | |
---|---|---|
![]() | Exists | Returns true if the current temp file exists. (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | Info | Returns the FileInfo object for this temp file. (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | 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. (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | TargetFile | Returns the originally provided filename that is being replaced |
![]() | TempPath | Returns the temporary file path being managed. (Inherited from CSharpTest.Net.IO.TempFile) |
Name | Description | |
---|---|---|
![]() | Commit | Commits the replace operation on the file |
![]() | CopyTo | Overloaded. Copies the file content to the specified target file name (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | Create | Re-Creates and Opens the temporary file for writing, multiple calls will truncate existing data. (Inherited from CSharpTest.Net.IO.TempFile) |
![]() ![]() | CreateDerivedFile | Derives a new filename that doesn't exist from the provided name, ie. file.txt becomes file.txt.~0001 |
![]() | Delete | Deletes the current temp file immediatly if it exists. (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | Detatch | Detatches this instance from the temporary file and returns the temp file's path (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | Dispose | Overloaded. Overridden. Disposes of the open stream and the temporary file. |
![]() | Open | Open or Create the temporary file for reading and writing (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | Read | Overloaded. Opens the temporary file for reading (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | ReadAllBytes | Reads all bytes from the file (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | ReadAllText | Reads all UTF8 text from the file (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | Rollback | Aborts the operation and reverts pending changes |
![]() | WriteAllBytes | Writes all bytes to the file (Inherited from CSharpTest.Net.IO.TempFile) |
![]() | WriteAllText | Writes all UTF8 text to the file (Inherited from CSharpTest.Net.IO.TempFile) |