LogRecordSequence Constructor (LogStore, Int32, Int32)

 

Initializes a new instance of the LogRecordSequence class with the specified log store, buffer size for each record, and buffer number.

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

public LogRecordSequence(
	LogStore logStore,
	int bufferSize,
	int bufferCount
)

Parameters

logStore
Type: System.IO.Log.LogStore

The LogStore that this record sequence should use.

bufferSize
Type: System.Int32

The desired buffer size in bytes. The buffer size determines the maximum size of the record that can be appended or read.

bufferCount
Type: System.Int32

The desired number of buffers.

Exception Condition
ArgumentNullException

logStore is null.

ArgumentOutOfRangeException

bufferSize is negative or zero.

-or-

bufferCount is negative or zero.

Use this constructor if you want to specify values for bufferSize and bufferCount and do not want to use the default value of 64 for bufferSize and 10 for bufferCount.

.NET Framework
Available since 3.0
Return to top
Show: