FileAppender ExclusiveLock AcquireLock Method | Apache log4net™ SDK Documentation

Acquire the lock on the file

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public override Stream AcquireLock()

    Public Overrides Function AcquireLock As Stream

    public:
    virtual Stream^ AcquireLock() override

    abstract AcquireLock : unit -> Stream
    override AcquireLock : unit -> Stream

#### Return Value

Type: Stream
A stream that is ready to be written to.
Remarks

Does nothing. The lock is already taken

See Also

#### Reference

FileAppender
ExclusiveLock Class
log4net.Appender Namespace