IRecordSequence.Flush Method (SequenceNumber)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, ensures that all appended records up to and including the record with the specified sequence number have been durably written.

Namespace:   System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

SequenceNumber Flush(
	SequenceNumber sequenceNumber
)

Parameters

sequenceNumber
Type: System.IO.Log.SequenceNumber

The sequence number of the latest record that must be written. If this SequenceNumber is invalid, then all records must be written.

Return Value

Type: System.IO.Log.SequenceNumber

The sequence number of the last record written.

Exception Condition
ArgumentException

One or more of the arguments is invalid.

IOException

An I/O error occurred while flushing the data.

ObjectDisposedException

The method was called after the sequence has been disposed of.

Calling this method ensures that all records with sequence numbers up to and including the specified sequence number have been durably written.

.NET Framework
Available since 3.0
Return to top
Show: