Export (0) Print
Expand All

LogRecordSequence.WriteRestartArea Method (IList<ArraySegment<Byte>>)

Writes a restart area to the LogRecordSequence. This method cannot be inherited.

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

public SequenceNumber WriteRestartArea(
	IList<ArraySegment<byte>> data
)

Parameters

data
Type: System.Collections.Generic.IList<ArraySegment<Byte>>

A list of byte array segments that will be concatenated and appended as the record.

Return Value

Type: System.IO.Log.SequenceNumber
The sequence number of the written restart area.

Implements

IRecordSequence.WriteRestartArea(IList<ArraySegment<Byte>>)

ExceptionCondition
ArgumentException

One or more of the arguments is invalid.

IOException

An I/O error occurred while writing the restart area.

SequenceFullException

The record sequence could not make enough free space to contain the new restart area.

ObjectDisposedException

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

ArgumentNullException

One or more of the arguments are null.

UnauthorizedAccessException

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

OutOfMemoryException

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

A restart area is used to temporarily store information containing a client's last checkpoint operation. The Common Log File System (CLFS) maintains two restart areas to guarantee that at least one valid area is always available. When a recovery is necessary, the CLFS reads its restart area and all the data from the last checkpoint operation. This data initializes the transaction table, dirty pages table, and open file table so they can be used in the recovery process.

A restart area can be read using the ReadRestartAreas method.

The data in the byte array segments will be concatenated into a single byte array for appending as the record. No provision is made for splitting data back into array segments when the restart area is read.

.NET Framework

Supported in: 4.5.2, 4.5.1, 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