IRecordSequence.AdvanceBaseSequenceNumber(SequenceNumber) Method

Definition

Moves the base sequence number of the log forward.

C#
public void AdvanceBaseSequenceNumber(System.IO.Log.SequenceNumber newBaseSequenceNumber);

Parameters

newBaseSequenceNumber
SequenceNumber

The new base sequence number of the record sequence.

Exceptions

newBaseSequenceNumber is invalid.

newBaseSequenceNumber is not active in the log.

An I/O error occurred while modifying the sequence.

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

The record sequence is full.

Remarks

When you use a LogRecordSequence instance and try to advance the sequence number to free up space in the log, the new base sequence number must reside in a different log extent for the previous extent to be marked as empty. Freeing extents partially is not supported.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1