CSharpTest.Net
TransactFile Class Members
See Also  Properties  Methods  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace : TransactFile Class


Glossary Item Box

The following tables list the members exposed by TransactFile.

Public Constructors

 NameDescription
Public ConstructorTransactFile ConstructorCreates a temp file based on the given file being replaced and when a call to Commit() is made the target file is replaced with the current contents of the temporary file.  
Top

Public Properties

 NameDescription
Public PropertyExistsReturns true if the current temp file exists. (Inherited from CSharpTest.Net.IO.TempFile)
Public PropertyInfoReturns the FileInfo object for this temp file. (Inherited from CSharpTest.Net.IO.TempFile)
Public PropertyLengthGets 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)
Public PropertyTargetFileReturns the originally provided filename that is being replaced  
Public PropertyTempPathReturns the temporary file path being managed. (Inherited from CSharpTest.Net.IO.TempFile)
Top

Public Methods

 NameDescription
Public MethodCommitCommits the replace operation on the file  
Public MethodCopyToOverloaded. Copies the file content to the specified target file name (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodCreateRe-Creates and Opens the temporary file for writing, multiple calls will truncate existing data. (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodDeleteDeletes the current temp file immediatly if it exists. (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodDetatchDetatches this instance from the temporary file and returns the temp file's path (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodDisposeOverloaded. Overridden. Disposes of the open stream and the temporary file.  
Public MethodOpenOpen or Create the temporary file for reading and writing (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodReadOverloaded. Opens the temporary file for reading (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodReadAllBytesReads all bytes from the file (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodReadAllTextReads all UTF8 text from the file (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodRollbackAborts the operation and reverts pending changes  
Public MethodWriteAllBytesWrites all bytes to the file (Inherited from CSharpTest.Net.IO.TempFile)
Public MethodWriteAllTextWrites all UTF8 text to the file (Inherited from CSharpTest.Net.IO.TempFile)
Top

See Also

Generated with Document! X 2011 by Innovasys