2 // System.Diagnostics.EventLogPermissionEntryCollection.cs
5 // Jonathan Pryor (jonpryor@vt.edu)
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
8 // (C) 2002 Jonathan Pryor
9 // (C) 2003 Andreas Nahr
14 using System.Collections;
15 using System.Diagnostics;
16 using System.Security.Permissions;
18 namespace System.Diagnostics
22 public class EventLogPermissionEntryCollection : CollectionBase
25 private EventLogPermissionEntryCollection()
29 internal EventLogPermissionEntryCollection (ResourcePermissionBaseEntry[] entries)
31 foreach (ResourcePermissionBaseEntry entry in entries) {
32 List.Add (new EventLogPermissionEntry ((EventLogPermissionAccess) entry.PermissionAccess, entry.PermissionAccessPath[0]));
36 public EventLogPermissionEntry this [int index] {
37 get { return ((EventLogPermissionEntry) List[index]); }
38 set { List[index] = value; }
41 public int Add(EventLogPermissionEntry value)
43 return List.Add (value);
46 public void AddRange(EventLogPermissionEntry[] value)
48 foreach (EventLogPermissionEntry entry in value)
52 public void AddRange(EventLogPermissionEntryCollection value)
54 foreach (EventLogPermissionEntry entry in value)
58 public bool Contains(EventLogPermissionEntry value)
60 return List.Contains (value);
63 public void CopyTo(EventLogPermissionEntry[] array, int index)
65 List.CopyTo (array, index);
68 public int IndexOf(EventLogPermissionEntry value)
70 return List.IndexOf (value);
73 public void Insert(int index, EventLogPermissionEntry value)
75 List.Insert (index, value);
79 protected override void OnClear()
81 throw new NotImplementedException();
85 protected override void OnInsert(int index, object value)
87 throw new NotImplementedException();
91 protected override void OnRemove(int index, object value)
93 throw new NotImplementedException();
97 protected override void OnSet(int index, object oldValue,
100 throw new NotImplementedException();
103 public void Remove(EventLogPermissionEntry value)