Esempio n. 1
0
 /// <summary>
 /// Overriden.
 /// </summary>
 /// <param name="index"></param>
 /// <param name="item"></param>
 protected override void InsertItem(int index, SPChange item)
 {
     if (isReadonly)
     {
         throw new InvalidOperationException("The collection is read-only.");
     }
     if (this.Count == 0)
     {
         this.Key        = SPChangeMonitor.GetUniqueKey(item);
         this.ObjectType = SPChangeMonitor.GetChangeObjectType(item);
         this.UniqueId   = (this.Key as Guid?).GetValueOrDefault();
     }
     this.ChangeFlags |= (SPChangeFlags)SPChangeMonitor.GetBitmaskValue(item.ChangeType);
     base.InsertItem(index, item);
 }
Esempio n. 2
0
 public SPChangeMonitorFilter(SPChangeObjectType objectType, SPChangeFlags flags)
 {
     this.Bitmask = SPChangeMonitor.GetBitmaskValue(objectType) | (ulong)flags;
 }