Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender.LockingModelBase.AcquireLock�Method�

Acquire the lock on the file

[Visual�Basic]
MustOverride�Public�Function�AcquireLock()�As�Stream
[C#]
public�abstract�Stream�AcquireLock();

Return Value

A stream that is ready to be written to.

Remarks

Acquire the lock on the file in preparation for writing to it. Return a stream pointing to the file. ReleaseLock must be called to release the lock on the output file.

See Also

FileAppender.LockingModelBase Class | log4net.Appender Namespace