log4net SDK Reference |

# FileAppender.ExclusiveLock Class

Hold an exclusive lock on the output file

For a list of all members of this type, see FileAppender.ExclusiveLock Members.

System.Object
log4net.Appender.FileAppender.LockingModelBase
log4net.Appender.FileAppender.ExclusiveLock

[Visual Basic]
Public Class FileAppender.ExclusiveLock
Inherits LockingModelBase
[C#]
public class FileAppender.ExclusiveLock : LockingModelBase

#### Thread Safety

This type is not safe for multithreaded operations.

#### Remarks

Open the file once for writing and hold it open until CloseFile is called. Maintains an exclusive lock on the file during this time.

#### Requirements

Namespace: log4net.Appender

Assembly: log4net (in log4net.dll)

#### See Also

FileAppender.ExclusiveLock Members | log4net.Appender Namespace