FileRecordSequence Class
Implements an IRecordSequence on top of a file. This class cannot be inherited.
Assembly: System.IO.Log (in System.IO.Log.dll)
| Name | Description | |
|---|---|---|
![]() | FileRecordSequence(String^) | Initializes a new instance of the FileRecordSequence class with a specified file. |
![]() | FileRecordSequence(String^, FileAccess) | Initializes a new instance of the FileRecordSequence class with a specified file and an access mode. |
![]() | FileRecordSequence(String^, FileAccess, Int32) | Initializes a new instance of the FileRecordSequence class with a specified file, an access mode, and a file size. |
| Name | Description | |
|---|---|---|
![]() | BaseSequenceNumber | Gets the sequence number of the first valid record in the current FileRecordSequence. |
![]() | LastSequenceNumber | Gets the sequence number which is greater than the last record appended. |
![]() | MaximumRecordLength | Gets the size of the largest record that can be appended to or read from this sequence, in bytes. |
![]() | ReservedBytes | Gets the total number of bytes that have been reserved. |
![]() | RestartSequenceNumber | Gets the sequence number of the most recently written restart area. |
![]() | RetryAppend | Gets or sets a value indicating whether or not appends are automatically retried if the log is full. |
| Name | Description | |
|---|---|---|
![]() | AdvanceBaseSequenceNumber(SequenceNumber) | Moves the base sequence number of the log forward. This method cannot be inherited. |
![]() | Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions) | Writes a log record to the FileRecordSequence. This method cannot be inherited. |
![]() | Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^) | Writes a log record to the FileRecordSequence, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | Append(IList<ArraySegment<Byte>>^, SequenceNumber, SequenceNumber, RecordAppendOptions) | Writes a log record to the FileRecordSequence. This method cannot be inherited. |
![]() | Append(IList<ArraySegment<Byte>>^, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^) | Writes a log record to the FileRecordSequence, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback^, Object^) | Begins an asynchronous append operation. This method cannot be inherited. |
![]() | BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^, AsyncCallback^, Object^) | Begins an asynchronous append operation using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginAppend(IList<ArraySegment<Byte>>^, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback^, Object^) | Begins an asynchronous append operation. This method cannot be inherited. |
![]() | BeginAppend(IList<ArraySegment<Byte>>^, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^, AsyncCallback^, Object^) | Begins an asynchronous append operation using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginFlush(SequenceNumber, AsyncCallback^, Object^) | Begins an asynchronous flush operation, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^, array<Int64>^, AsyncCallback^, Object^) | Begins an asynchronous reserve and append operation. This method cannot be inherited. |
![]() | BeginReserveAndAppend(IList<ArraySegment<Byte>>^, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^, array<Int64>^, AsyncCallback^, Object^) | Begins an asynchronous reserve and append operation. This method cannot be inherited. |
![]() | BeginWriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection^, AsyncCallback^, Object^) | Begins an asynchronous restart area write operation, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginWriteRestartArea(IList<ArraySegment<Byte>>^, SequenceNumber, ReservationCollection^, AsyncCallback^, Object^) | Begins an asynchronous restart area write operation, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | CreateReservationCollection() | Creates a new ReservationCollection. This method cannot be inherited. |
![]() | Dispose() | Immediately releases the unmanaged resources used by an object. |
![]() | EndAppend(IAsyncResult^) | Ends an asynchronous append operation. This method cannot be inherited. |
![]() | EndFlush(IAsyncResult^) | Ends an asynchronous flush operation. This method cannot be inherited. |
![]() | EndReserveAndAppend(IAsyncResult^) | Ends an asynchronous reserve and append operation. This method cannot be inherited. |
![]() | EndWriteRestartArea(IAsyncResult^) | Ends an asynchronous restart area write operation. This method cannot be inherited. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Flush() | Ensures that all appended records have been written. This method cannot be inherited. |
![]() | Flush(SequenceNumber) | Ensures that all appended records have been written. This method cannot be inherited. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ReadLogRecords(SequenceNumber, LogRecordEnumeratorType) | Returns an enumerable collection of records in the sequence. This method cannot be inherited. |
![]() | ReadRestartAreas() | Returns an enumerable collection of the restart areas in the sequence. This method cannot be inherited. |
![]() | ReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^, array<Int64>^) | Automatically makes a single reservation and appends a record to the sequence. This method cannot be inherited. |
![]() | ReserveAndAppend(IList<ArraySegment<Byte>>^, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection^, array<Int64>^) | Automatically makes a single reservation and appends a record to the sequence. This method cannot be inherited. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | WriteRestartArea(ArraySegment<Byte>) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(ArraySegment<Byte>, SequenceNumber) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection^) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(IList<ArraySegment<Byte>>^) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(IList<ArraySegment<Byte>>^, SequenceNumber) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(IList<ArraySegment<Byte>>^, SequenceNumber, ReservationCollection^) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
| Name | Description | |
|---|---|---|
![]() | TailPinned | Occurs when the record sequence determines that the tail must be moved forward. This method cannot be inherited. |
The FileRecordSequence is a record sequence based on a single log file in the file system. It is a simple implementation of the IRecordSequence interface, on top of a simple file-based log.
To manipulate a file-based log, the account that your application is running in must have sufficient privileges, as dictated by the file system security at the time the FileRecordSequence is constructed. In addition, a demand for FullTrust is made at construction time. The permission verification results are cached thereafter in keeping with the Windows security model. You should ensure that you do not accidentally expose the contents of the record sequence to an unauthorized user.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


