Set the prefix in use for all locks created in this LockFactory. This is normally called once, when a Directory gets this LockFactory instance. However, you can also call this (after this instance is assigned to a Directory) to override the prefix in use. This is helpful if you're running Lucene on machines that have different mount points for the same shared directory.

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

Syntax

C#
public virtual void SetLockPrefix(
	string lockPrefix
)
Visual Basic
Public Overridable Sub SetLockPrefix ( _
	lockPrefix As String _
)
Visual C++
public:
virtual void SetLockPrefix(
	String^ lockPrefix
)

Parameters

lockPrefix
Type: System..::..String

[Missing <param name="lockPrefix"/> documentation for "M:Lucene.Net.Store.LockFactory.SetLockPrefix(System.String)"]

See Also