EventLog.Close Method ()

 

Closes the event log and releases read and write handles.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public void Close()

Exception Condition
Win32Exception

The event log's read handle or write handle was not released successfully.

The Close method is called by the protected Dispose method. You do not need to invoke Close before calling Dispose.

EventLogPermission

for writing the event log information on the computer. Associated enumeration: EventLogPermissionAccess.Write

.NET Framework
Available since 1.1
Return to top
Show: