FileRecordSequence FileRecordSequence FileRecordSequence FileRecordSequence Class

定義

ファイル上に IRecordSequence を実装します。Implements an IRecordSequence on top of a file. このクラスは継承できません。This class cannot be inherited.

public ref class FileRecordSequence sealed : IDisposable, System::IO::Log::IRecordSequence
public sealed class FileRecordSequence : IDisposable, System.IO.Log.IRecordSequence
type FileRecordSequence = class
    interface IRecordSequence
    interface IDisposable
Public NotInheritable Class FileRecordSequence
Implements IDisposable, IRecordSequence
継承
FileRecordSequenceFileRecordSequenceFileRecordSequenceFileRecordSequence
実装

次の例では、レコード シーケンスを作成し、レコードを追加し、最後にレコードを読み取ります。The following example creates a record sequence, appends record to it, and finally reads the records.


public class MyLog
{
	string logName = "test.log";
	FileRecordSequence sequence = null;
	bool delete = true;

	public MyLog()
	{
    // Create a FileRecordSequence.
		sequence = new FileRecordSequence(logName, FileAccess.ReadWrite);
	}

// Append records to the record sequence.
	public void AppendRecords()
	{
		Console.WriteLine("Appending Log Records...");
		SequenceNumber previous = SequenceNumber.Invalid;

		previous = sequence.Append(CreateData("Hello World!"), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush);
		previous = sequence.Append(CreateData("This is my first Logging App"), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush);
		previous = sequence.Append(CreateData("Using FileRecordSequence..."), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush);

		Console.WriteLine("Done...");
	}
	 
// Read the records added to the log. 
	public void ReadRecords()
	{
		Encoding enc = Encoding.Unicode;

		Console.WriteLine();

		Console.WriteLine("Reading Log Records...");
		try
		{
			foreach (LogRecord record in this.sequence.ReadLogRecords(this.sequence.BaseSequenceNumber, LogRecordEnumeratorType.Next))
			{
				byte[] data = new byte[record.Data.Length];
				record.Data.Read(data, 0, (int)record.Data.Length);
				string mystr = enc.GetString(data);
				Console.WriteLine("    {0}", mystr);
			}
		}
		catch (Exception e)
		{
			Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message);
		}

		Console.WriteLine();
	}

// Dispose the record sequence and delete the log file. 
	public void Cleanup()
	{
    // Dispose the sequence.
		sequence.Dispose();

    // Delete the log file.
		if (delete)
		{
			try
			{
				File.Delete(this.logName);
			}
			catch (Exception e)
			{
				Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message);
			}
		}
	}

// Converts the given data to an Array of ArraySegment<byte> 
	public static IList<ArraySegment<byte>> CreateData(string str)
	{
		Encoding enc = Encoding.Unicode;

		byte[] array = enc.GetBytes(str);

		ArraySegment<byte>[] segments = new ArraySegment<byte>[1];
		segments[0] = new ArraySegment<byte>(array);

		return Array.AsReadOnly<ArraySegment<byte>>(segments);
	}
}

class LogSample
{
	static void Main2(string[] args)
	{
		MyLog log = new MyLog();

		log.AppendRecords();
		log.ReadRecords();
		log.Cleanup();
	}
}

Public Class MyLog
	Private logName As String = "test.log"
	Private sequence As FileRecordSequence = Nothing
	Private delete As Boolean = True

	Public Sub New()
	' Create a FileRecordSequence.
		sequence = New FileRecordSequence(logName, FileAccess.ReadWrite)
	End Sub

' Append records to the record sequence.
	Public Sub AppendRecords()
		Console.WriteLine("Appending Log Records...")
		Dim previous As SequenceNumber = SequenceNumber.Invalid

		previous = sequence.Append(CreateData("Hello World!"), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush)
		previous = sequence.Append(CreateData("This is my first Logging App"), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush)
		previous = sequence.Append(CreateData("Using FileRecordSequence..."), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush)

		Console.WriteLine("Done...")
	End Sub

' Read the records added to the log. 
	Public Sub ReadRecords()
		Dim enc As Encoding = Encoding.Unicode

		Console.WriteLine()

		Console.WriteLine("Reading Log Records...")
		Try
               For Each record In Me.sequence.ReadLogRecords(Me.sequence.BaseSequenceNumber, LogRecordEnumeratorType.Next)
                   Dim data(record.Data.Length - 1) As Byte
                   record.Data.Read(data, 0, CInt(Fix(record.Data.Length)))
                   Dim mystr As String = enc.GetString(data)
                   Console.WriteLine("    {0}", mystr)
               Next record
		Catch e As Exception
			Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message)
		End Try

		Console.WriteLine()
	End Sub

' Dispose the record sequence and delete the log file. 
	Public Sub Cleanup()
	' Dispose the sequence.
		sequence.Dispose()

	' Delete the log file.
		If delete Then
			Try
				File.Delete(Me.logName)
			Catch e As Exception
				Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message)
			End Try
		End If
	End Sub

' Converts the given data to an Array of ArraySegment<byte> 
	Public Shared Function CreateData(ByVal str As String) As IList(Of ArraySegment(Of Byte))
		Dim enc As Encoding = Encoding.Unicode

		Dim array() As Byte = enc.GetBytes(str)

		Dim segments(0) As ArraySegment(Of Byte)
		segments(0) = New ArraySegment(Of Byte)(array)

           Return System.Array.AsReadOnly(Of ArraySegment(Of Byte))(segments)
	End Function
End Class

Friend Class LogSample
	Private Shared Sub Main2(ByVal args() As String)
		Dim log As New MyLog()

		log.AppendRecords()
		log.ReadRecords()
		log.Cleanup()
	End Sub
End Class

注釈

FileRecordSequence は、ファイル システム内の単一のログ ファイルに基づくレコード シーケンスです。The FileRecordSequence is a record sequence based on a single log file in the file system. これは、単純なファイルに基づくログ上の IRecordSequence インターフェイスの簡単な実装です。It is a simple implementation of the IRecordSequence interface, on top of a simple file-based log.

ファイル ベースのログを操作するには、アプリケーションを実行しているアカウントに十分な特権が必要です。特権は、FileRecordSequence の構築時にファイル システムのセキュリティで指定されます。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. さらに、構築時に FullTrust への要求が行われます。In addition, a demand for FullTrust is made at construction time. アクセス許可の検査の結果は、事後に Windows セキュリティ モデルに合わせてキャッシュされます。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.

コンストラクター

FileRecordSequence(String) FileRecordSequence(String) FileRecordSequence(String) FileRecordSequence(String)

指定したファイルを使用して、FileRecordSequence クラスの新しいインスタンスを初期化します。Initializes a new instance of the FileRecordSequence class with a specified file.

FileRecordSequence(String, FileAccess) FileRecordSequence(String, FileAccess) FileRecordSequence(String, FileAccess) FileRecordSequence(String, FileAccess)

ファイルおよびアクセス モードを指定して、FileRecordSequence クラスの新しいインスタンスを初期化します。Initializes a new instance of the FileRecordSequence class with a specified file and an access mode.

FileRecordSequence(String, FileAccess, Int32) FileRecordSequence(String, FileAccess, Int32) FileRecordSequence(String, FileAccess, Int32) FileRecordSequence(String, FileAccess, Int32)

ファイル、アクセス モード、およびファイル サイズを指定して、FileRecordSequence クラスの新しいインスタンスを初期化します。Initializes a new instance of the FileRecordSequence class with a specified file, an access mode, and a file size.

プロパティ

BaseSequenceNumber BaseSequenceNumber BaseSequenceNumber BaseSequenceNumber

現在の FileRecordSequence 内の最初の有効なレコードのシーケンス番号を取得します。Gets the sequence number of the first valid record in the current FileRecordSequence.

LastSequenceNumber LastSequenceNumber LastSequenceNumber LastSequenceNumber

追加された最後のレコードのシーケンス番号より大きいシーケンス番号を取得します。Gets the sequence number which is greater than the last record appended.

MaximumRecordLength MaximumRecordLength MaximumRecordLength MaximumRecordLength

このシーケンスに対して追加または読み取りが可能な最大レコード サイズのバイト数を取得します。Gets the size of the largest record that can be appended to or read from this sequence, in bytes.

ReservedBytes ReservedBytes ReservedBytes ReservedBytes

予約された合計バイト数を取得します。Gets the total number of bytes that have been reserved.

RestartSequenceNumber RestartSequenceNumber RestartSequenceNumber RestartSequenceNumber

直前に書き込まれた再開領域のシーケンス番号を取得します。Gets the sequence number of the most recently written restart area.

RetryAppend RetryAppend RetryAppend RetryAppend

ログがいっぱいの場合に、追加を自動的に再試行するかどうかを示す値を取得または設定します。Gets or sets a value indicating whether or not appends are automatically retried if the log is full.

メソッド

AdvanceBaseSequenceNumber(SequenceNumber) AdvanceBaseSequenceNumber(SequenceNumber) AdvanceBaseSequenceNumber(SequenceNumber) AdvanceBaseSequenceNumber(SequenceNumber)

ログの基本シーケンス番号を前方移動します。Moves the base sequence number of the log forward. このメソッドは継承できません。This method cannot be inherited.

Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions) Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions) Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions) Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions)

ログ レコードを FileRecordSequence に書き込みます。Writes a log record to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection)

以前にシーケンスに予約された領域を使用して、FileRecordSequence にログ レコードを書き込みます。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) Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions) Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions) Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions)

ログ レコードを FileRecordSequence に書き込みます。Writes a log record to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection)

以前にシーケンスに予約された領域を使用して、FileRecordSequence にログ レコードを書き込みます。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) BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object) BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object) 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) BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object) BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object) 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) BeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object) BeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object) 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) BeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object) BeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object) 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) BeginFlush(SequenceNumber, AsyncCallback, Object) BeginFlush(SequenceNumber, AsyncCallback, Object) 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, Int64[], AsyncCallback, Object) BeginReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object) BeginReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object) BeginReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object)

非同期の予約および追加操作を開始します。Begins an asynchronous reserve and append operation. このメソッドは継承できません。This method cannot be inherited.

BeginReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object) BeginReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object) BeginReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object) BeginReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object)

非同期の予約および追加操作を開始します。Begins an asynchronous reserve and append operation. このメソッドは継承できません。This method cannot be inherited.

BeginWriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection, AsyncCallback, Object) BeginWriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection, AsyncCallback, Object) BeginWriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection, AsyncCallback, Object) 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) BeginWriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection, AsyncCallback, Object) BeginWriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection, AsyncCallback, Object) 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() CreateReservationCollection() CreateReservationCollection() CreateReservationCollection()

新しい ReservationCollection を作成します。Creates a new ReservationCollection. このメソッドは継承できません。This method cannot be inherited.

Dispose() Dispose() Dispose() Dispose()

オブジェクトで使用されているアンマネージ リソースを直ちに解放します。Immediately releases the unmanaged resources used by an object.

EndAppend(IAsyncResult) EndAppend(IAsyncResult) EndAppend(IAsyncResult) EndAppend(IAsyncResult)

非同期の追加操作を終了します。Ends an asynchronous append operation. このメソッドは継承できません。This method cannot be inherited.

EndFlush(IAsyncResult) EndFlush(IAsyncResult) EndFlush(IAsyncResult) EndFlush(IAsyncResult)

非同期フラッシュ操作を終了します。Ends an asynchronous flush operation. このメソッドは継承できません。This method cannot be inherited.

EndReserveAndAppend(IAsyncResult) EndReserveAndAppend(IAsyncResult) EndReserveAndAppend(IAsyncResult) EndReserveAndAppend(IAsyncResult)

非同期の予約および追加操作を終了します。Ends an asynchronous reserve and append operation. このメソッドは継承できません。This method cannot be inherited.

EndWriteRestartArea(IAsyncResult) EndWriteRestartArea(IAsyncResult) EndWriteRestartArea(IAsyncResult) EndWriteRestartArea(IAsyncResult)

非同期の再開領域の書き込み操作を終了します。Ends an asynchronous restart area write operation. このメソッドは継承できません。This method cannot be inherited.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Flush() Flush() Flush() Flush()

追加したすべてのレコードが書き込まれたことを確認します。Ensures that all appended records have been written. このメソッドは継承できません。This method cannot be inherited.

Flush(SequenceNumber) Flush(SequenceNumber) Flush(SequenceNumber) Flush(SequenceNumber)

追加したすべてのレコードが書き込まれたことを確認します。Ensures that all appended records have been written. このメソッドは継承できません。This method cannot be inherited.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
ReadLogRecords(SequenceNumber, LogRecordEnumeratorType) ReadLogRecords(SequenceNumber, LogRecordEnumeratorType) ReadLogRecords(SequenceNumber, LogRecordEnumeratorType) ReadLogRecords(SequenceNumber, LogRecordEnumeratorType)

シーケンス内のレコードの列挙可能なコレクションを返します。Returns an enumerable collection of records in the sequence. このメソッドは継承できません。This method cannot be inherited.

ReadRestartAreas() ReadRestartAreas() ReadRestartAreas() ReadRestartAreas()

シーケンス内の再開領域の列挙可能なコレクションを返します。Returns an enumerable collection of the restart areas in the sequence. このメソッドは継承できません。This method cannot be inherited.

ReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[]) ReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[]) ReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[]) ReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, 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, Int64[]) ReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[]) ReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[]) ReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[])

単一の予約を自動的に行って、シーケンスにレコードを追加します。Automatically makes a single reservation and appends a record to the sequence. このメソッドは継承できません。This method cannot be inherited.

ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)
WriteRestartArea(ArraySegment<Byte>) WriteRestartArea(ArraySegment<Byte>) WriteRestartArea(ArraySegment<Byte>) WriteRestartArea(ArraySegment<Byte>)

再開領域を FileRecordSequence に書き込みます。Writes a restart area to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

WriteRestartArea(ArraySegment<Byte>, SequenceNumber) WriteRestartArea(ArraySegment<Byte>, SequenceNumber) WriteRestartArea(ArraySegment<Byte>, SequenceNumber) WriteRestartArea(ArraySegment<Byte>, SequenceNumber)

再開領域を FileRecordSequence に書き込みます。Writes a restart area to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

WriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection) WriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection) WriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection) WriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection)

再開領域を FileRecordSequence に書き込みます。Writes a restart area to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

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

再開領域を FileRecordSequence に書き込みます。Writes a restart area to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber) WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber) WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber) WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber)

再開領域を FileRecordSequence に書き込みます。Writes a restart area to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection) WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection) WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection) WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection)

再開領域を FileRecordSequence に書き込みます。Writes a restart area to the FileRecordSequence. このメソッドは継承できません。This method cannot be inherited.

イベント

TailPinned TailPinned TailPinned TailPinned

レコード シーケンスで末尾を前方に移動する必要があると判断された場合に発生します。Occurs when the record sequence determines that the tail must be moved forward. このメソッドは継承できません。This method cannot be inherited.

適用対象