Export (0) Print
Expand All

LogRecordSequence.SetLastRecord Method

Sets the last record in the LogRecordSequence.

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

public void SetLastRecord(
	SequenceNumber sequenceNumber
)

Parameters

sequenceNumber
Type: System.IO.Log.SequenceNumber

The new last sequence number in the LogRecordSequence.

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

ExceptionCondition
ArgumentException

sequenceNumber is not valid for this sequence.

ArgumentOutOfRangeException

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.

IOException

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.

ObjectDisposedException

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

OutOfMemoryException

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

UnauthorizedAccessException

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

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.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft