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


Glossary Item Box

The following tables list the members exposed by TempFile.

Public Constructors

 NameDescription
Public ConstructorTempFile ConstructorOverloaded.   
Top

Public Properties

 NameDescription
Public PropertyExistsReturns true if the current temp file exists.  
Public PropertyInfoReturns the FileInfo object for this temp file.  
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.  
Public PropertyTempPathReturns the temporary file path being managed.  
Top

Public Methods

 NameDescription
Public Methodstatic (Shared in Visual Basic)AttachAttaches a new instances of a TempFile to the provided file path  
Public MethodCopyToOverloaded. Copies the file content to the specified target file name  
Public MethodCreateRe-Creates and Opens the temporary file for writing, multiple calls will truncate existing data.  
Public Methodstatic (Shared in Visual Basic)CreateTempPathCreates a temp file having the provided extension  
Public Methodstatic (Shared in Visual Basic)DeleteOverloaded. Safely delete the provided file name  
Public MethodDetatchDetatches this instance from the temporary file and returns the temp file's path  
Public MethodDisposeOverloaded. Disposes of the temporary file  
Public Methodstatic (Shared in Visual Basic)FromCopyCreates a temp file having a copy of the specified file  
Public Methodstatic (Shared in Visual Basic)FromExtensionCreates a temp file having the provided extension  
Public MethodOpenOpen or Create the temporary file for reading and writing  
Public MethodReadOverloaded. Opens the temporary file for reading  
Public MethodReadAllBytesReads all bytes from the file  
Public MethodReadAllTextReads all UTF8 text from the file  
Public MethodWriteAllBytesWrites all bytes to the file  
Public MethodWriteAllTextWrites all UTF8 text to the file  
Top

Protected Methods

 NameDescription
Protected MethodFinalizeRemoves the file if Dispose() is not called  
Top

See Also

Generated with Document! X 2011 by Innovasys