Lucene.Net 1.9.1 Class Library

FSDirectory.MakeLock Method 

Constructs a {@link Lock} with the specified name. Locks are implemented with {@link File#createNewFile()}.

public override Lock MakeLock(
   string name
);

Parameters

name
the name of the lock file

Return Value

an instance of

Lock
holding the lock

See Also

FSDirectory Class | Lucene.Net.Store Namespace