Redigera

Dela via


LogRecordSequence.SetLastRecord(SequenceNumber) Method

Definition

Sets the last record in the LogRecordSequence.

public:
 void SetLastRecord(System::IO::Log::SequenceNumber sequenceNumber);
public void SetLastRecord (System.IO.Log.SequenceNumber sequenceNumber);
member this.SetLastRecord : System.IO.Log.SequenceNumber -> unit
Public Sub SetLastRecord (sequenceNumber As SequenceNumber)

Parameters

sequenceNumber
SequenceNumber

The new last sequence number in the LogRecordSequence.

This should refer to a current valid record currently in the log.

Exceptions

sequenceNumber is not valid for this sequence.

A new or existing archive tail or base of the active log is invalid.

-or-

sequenceNumber is not between the base and last sequence numbers of this sequence.

The request could not be performed because of an unexpected I/O exception.

-or-

The end of the log has been reached.

-or-

The specified log file format or version is invalid.

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

There is not enough memory to continue the execution of the program.

Access for the specified log sequence is denied by the operating system.

Remarks

The specified sequence number must be larger than the base sequence number.

When this method completes, all records that had previously been appended with sequence numbers greater than the specified sequence number are inaccessible.

Applies to