Lucene.Net.Index.IndexWriter.IsLocked C# (CSharp) Method

IsLocked() public static method

Returns true iff the index in the named directory is currently locked.
public static IsLocked ( Lucene.Net.Store.Directory directory ) : bool
directory Lucene.Net.Store.Directory the directory to check for a lock ///
return bool
		public static bool IsLocked(Directory directory)
		{
			return directory.MakeLock(WRITE_LOCK_NAME).IsLocked();
		}
		
IndexWriter