LogRecordSequence Constructor (String, FileMode, FileAccess, FileShare, Int32, Int32, FileSecurity)
Initializes a new instance of the LogRecordSequence class.
Assembly: System.IO.Log (in System.IO.Log.dll)
public LogRecordSequence( string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, int bufferCount, FileSecurity fileSecurity )
A relative or absolute path for the base file of the log store to open.
A valid FileMode value that determines how to open or create the store.
A valid FileAccess value that determines how the log store can be accessed.
A valid FileShare value that determines how the log store will be shared among processes.
The desired buffer size in bytes. The buffer size determines the maximum size of the record that can be appended or read.
The desired number of buffers.
One or more of the arguments are null.
One or more of the arguments are out of range.
The file specified by path cannot be found.
The request could not be performed because of an unexpected I/O exception.
The file specified by path cannot be accessed because it is in use by another process.
The file specified by path cannot be created because the file or directory already exists.
The log handle could not be bound to the thread pool.
The specified log file format or version is invalid.
This operation is not supported.
The method was called after the sequence has been disposed of.
There is not enough memory to continue the execution of the program.
The record sequence is full.
Access for the specified log sequence is denied by the operating system.
Available since 3.0