CMTransport.SynchronizeLedgerNow
Method
Visual Basic
Public Sub SynchronizeLedgerNow
()
C#
public void SynchronizeLedgerNow
();
Purpose
Synchronize the ledger to its storage medium.
Remarks
When this method returns, the transport’s current state is safely stored in the ledger file.
Transports that use synchronous ledger files need not call this method, since the current state is automatically written to the storage medium before returning. Transports that use process-based ledger storage need not call this method, since they have no ledger file.
Errors
The error code InvalidArgument can indicate that the transport does not have a ledger file.