Returns whether Lucene's use of lock files is disabled.

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

Syntax

C#
[ObsoleteAttribute("Use a constructor that takes a LockFactory and supply NoLockFactory.GetNoLockFactory.")]
public static bool GetDisableLocks()
Visual Basic
<ObsoleteAttribute("Use a constructor that takes a LockFactory and supply NoLockFactory.GetNoLockFactory.")> _
Public Shared Function GetDisableLocks As Boolean
Visual C++
[ObsoleteAttribute(L"Use a constructor that takes a LockFactory and supply NoLockFactory.GetNoLockFactory.")]
public:
static bool GetDisableLocks()

Return Value

true if locks are disabled, false if locks are enabled.

See Also