Contains arguments for the IAclManager.AclChanged event.
상속: System.EventArgs
예제 #1
0
 /// <summary>
 /// Handles the <see cref="IAclManager.AclChanged" /> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The event arguments.</param>
 private void aclManager_AclChanged(object sender, AclChangedEventArgs e)
 {
     if (e.Change == Change.EntryDeleted)
     {
         DeleteEntries(e.Entries);
     }
     else if (e.Change == Change.EntryStored)
     {
         StoreEntries(e.Entries);
     }
     else
     {
         throw new NotSupportedException("Change type not supported");
     }
 }
예제 #2
0
        /// <summary>
        /// Handles the <see cref="IAclManager.AclChanged" /> event.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The event arguments.</param>
        private void aclManager_AclChanged(object sender, AclChangedEventArgs e)
        {
            switch (e.Change)
            {
            case Change.EntryDeleted:
                DeleteEntries(e.Entries);
                break;

            case Change.EntryStored:
                StoreEntries(e.Entries);
                break;

            default:
                throw
                    new NotSupportedException("Change type not supported");
            }
        }
예제 #3
0
 /// <summary>
 /// Handles the <see cref="IAclManager.AclChanged" /> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The event arguments.</param>
 private void aclManager_AclChanged(object sender, AclChangedEventArgs e)
 {
     if(e.Change == Change.EntryDeleted) DeleteEntries(e.Entries);
     else if(e.Change == Change.EntryStored) StoreEntries(e.Entries);
     else throw new NotSupportedException("Change type not supported");
 }