Tries to acquire the WriteLock on this directory. this method is only valid if this IndexReader is directory owner.
if another writer has this index open (
CopyC#
write.lock
could not be obtained)

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
protected internal override void AcquireWriteLock()
Visual Basic
Protected Friend Overrides Sub AcquireWriteLock
Visual C++
protected public:
virtual void AcquireWriteLock() override

See Also