///<summary> ///Removes the element with the specified key from the <see cref="T:System.Collections.Generic.IDictionary`2"></see>. ///</summary> /// ///<returns> ///true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original <see cref="T:System.Collections.Generic.IDictionary`2"></see>. ///</returns> /// ///<param name="key">The key of the element to remove.</param> ///<exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.IDictionary`2"></see> is read-only.</exception> ///<exception cref="T:System.ArgumentNullException">key is null.</exception> public bool Remove(TKey key) { Mutex.WaitOne(); try { return(_persistHandler.Remove(key)); } finally { Mutex.ReleaseMutex(); } }