Пример #1
0
 /// <summary>
 /// Copies all of the mappings from the specified dictionary to this
 /// cache (optional operation).
 /// </summary>
 /// <remarks>
 /// These mappings will replace any mappings that this cache had for
 /// any of the keys currently in the specified dictionary.
 /// </remarks>
 /// <param name="dictionary">
 /// Mappings to be stored in this cache.
 ///  </param>
 /// <exception cref="InvalidCastException">
 /// If the class of a key or value in the specified dictionary
 /// prevents it from being stored in this cache.
 /// </exception>
 /// <exception cref="InvalidOperationException">
 /// If the lock could not be succesfully obtained for some key.
 /// </exception>
 /// <exception cref="NullReferenceException">
 /// This cache does not permit <c>null</c> keys or values, and the
 /// specified key or value is <c>null</c>.
 /// </exception>
 public virtual void InsertAll(IDictionary dictionary)
 {
     NamedCache.InsertAll(dictionary);
 }