DotLucene 1.4 API Documentation |

# Lock.With Members

Lock.With overview

#### Public Instance Constructors

Lock.With | Overloaded. Initializes a new instance of the Lock.With class.

#### Public Instance Methods

DoBody | Code to execute with exclusive access.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) | Gets the Type of the current instance.
run | Calls {@link .doBody} while lock is obtained. Blocks if lock cannot be obtained immediately. Retries to obtain lock once per second until it is obtained, or until it has tried ten times. Lock is released when {@link .doBody} exits.
ToString (inherited from Object) | Returns a String that represents the current Object.

#### Protected Instance Methods

Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.

#### See Also

Lock.With Class | Lucene.Net.Store Namespace