When true every write will rewrite the modified handle(s) back to disk, otherwise the handle state is kept in memory until a call to commit has been made.
Syntax
Visual Basic (Declaration) | |
---|
Public Property CommitOnWrite As Boolean |
C# | |
---|
public bool CommitOnWrite {get; set;} |
Example
Library/Library.Test/TestTransactedCompoundFile.cs
C# | Copy Code |
---|
using (TempFile temp = new TempFile())
{
TestWriteWithOptions(
new TransactedCompoundFile.Options(temp.TempPath)
{
BlockSize = 512,
CommitOnWrite = false,
CommitOnDispose = false
}
);
} |
VB.NET | Copy Code |
---|
Using temp As New TempFile()
TestWriteWithOptions(New TransactedCompoundFile.Options(temp.TempPath) With { _
Key .BlockSize = 512, _
Key .CommitOnWrite = False, _
Key .CommitOnDispose = False _
})
End Using |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also