This documentation is archived and is not being maintained.

IRecordSequence.LastSequenceNumber Property

When overridden in a derived class, gets the sequence number which is greater than the last record appended.

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

SequenceNumber LastSequenceNumber { get; }

Property Value

Type: System.IO.Log.SequenceNumber
A sequence number which is greater than the last record appended.


The property was accessed after the sequence has been disposed of.

This property contains a sequence number that is guaranteed to be larger than the sequence number of the last appended record. Valid sequence numbers are greater than or equal to BaseSequenceNumber and less than LastSequenceNumber.


When using a LogRecordSequence instance, the LastSequenceNumber value can become out of date until records are flushed to the log. See Flush and RecordAppendOptions for more information on flushing records..

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0