Export (0) Print
Expand All

LogStore Constructor (SafeFileHandle)

Initializes a new instance of the LogStore class for the specified handle.

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

public LogStore(
	SafeFileHandle handle
)

Parameters

handle
Type: Microsoft.Win32.SafeHandles.SafeFileHandle

A file handle for the log file that the current LogStore object encapsulates.

ExceptionCondition
ArgumentNullException

handle is null.

IOException

The log handle could not be bound to the thread pool.

UnauthorizedAccessException

Access for the specified log store is denied by the operating system.

ObjectDisposedException

The method was called after the sequence has been disposed of.

OutOfMemoryException

There is not enough memory to continue the execution of a program.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft