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


Glossary Item Box

The following tables list the members exposed by TransactedCompoundFile.

Public Constructors

 NameDescription
Public ConstructorTransactedCompoundFile ConstructorOverloaded.   
Top

Public Properties

 NameDescription
Public Propertystatic (Shared in Visual Basic)FirstIdentityReturns the first block that *would* be allocated by a call to Create() on an empty file.  
Top

Public Methods

 NameDescription
Public MethodClearImmediatly truncates the file to zero-length and re-initializes an empty file  
Public MethodCommitOverloaded. For file-level transactions, performs a two-stage commit of all changed handles.  
Public MethodCreateAllocates a handle for data, you MUST call Write to commit the handle, otherwise the handle may be reallocated after closing and re-opening this file. If you do not intend to commit the handle by writing to it, you should still call Delete() so that it may be reused.  
Public MethodDeleteDeletes the handle and frees the associated block space for reuse.  
Public MethodDisposeCloses all streams and clears all in-memory data.  
Public MethodReadReads all bytes from the from the handle specified  
Public MethodRollbackFor file-level transactions, Reloads the file from it's original (or last committed) state.  
Public MethodWriteWrites the bytes provided to the handle that was previously obtained by a call to Create(). The length must not be more than ((16*BlockSize)-32) bytes in length. The exact header size (32 bytes) may change without notice in a future release.  
Top

See Also

Generated with Document! X 2011 by Innovasys