LogRecordSequence Constructor (String, FileMode, FileAccess)
Initializes a new instance of the LogRecordSequence class with a specified path to the log store and the access and share modes.
Assembly: System.IO.Log (in System.IO.Log.dll)
- Type: System.String
A relative or absolute path for the base file of the log store to open.
- Type: System.IO.FileMode
One of the FileMode values that determines how to open or create the store.
path is null.
path is an empty string ("").
path contains only white space.
path contains one or more invalid characters.
mode contains an invalid value.
The file cannot be found.
An I/O error occurs when opening the log store.
Access for the specified log sequence is denied by the operating system.
This operation is not supported.
There is not enough memory to continue the execution of the program.
LogRecordSequence cannot be used because the required Common Log File System (CLFS) component is not installed. Install the CLFS component if it is available for your platform, or use the FileRecordSequence class.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.