internal PerformanceCounterPermissionEntryCollection (PerformanceCounterPermission owner) { this.owner = owner; ResourcePermissionBaseEntry[] entries = owner.GetEntries (); if (entries.Length > 0) { foreach (ResourcePermissionBaseEntry entry in entries) { PerformanceCounterPermissionAccess elpa = (PerformanceCounterPermissionAccess) entry.PermissionAccess; string machine = entry.PermissionAccessPath [0]; string category = entry.PermissionAccessPath [1]; PerformanceCounterPermissionEntry elpe = new PerformanceCounterPermissionEntry (elpa, machine, category); // we don't want to add them (again) to the base class InnerList.Add (elpe); } } }
internal PerformanceCounterPermissionEntryCollection(PerformanceCounterPermission owner) { this.owner = owner; ResourcePermissionBaseEntry[] entries = owner.GetEntries(); if (entries.Length > 0) { foreach (ResourcePermissionBaseEntry entry in entries) { PerformanceCounterPermissionAccess elpa = (PerformanceCounterPermissionAccess)entry.PermissionAccess; string machine = entry.PermissionAccessPath [0]; string category = entry.PermissionAccessPath [1]; PerformanceCounterPermissionEntry elpe = new PerformanceCounterPermissionEntry(elpa, machine, category); // we don't want to add them (again) to the base class InnerList.Add(elpe); } } }