Method EnsureHeld EnsureHeld() Throws an exception if the current thread does not hold the lock. Declaration public void EnsureHeld() Exceptions Type Condition InvalidOperationException The current thread does not hold the lock.