log4net SDK Reference |

# FileAppender.ExclusiveLock.AcquireLock Method

Acquire the lock on the file

[Visual Basic]
Overrides Public Function AcquireLock() As Stream
[C#]
public override Stream AcquireLock();

#### Return Value

A stream that is ready to be written to.

#### Remarks

Does nothing. The lock is already taken

#### See Also

FileAppender.ExclusiveLock Class | log4net.Appender Namespace