Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventLogPermissionEntryCollection.cs / 1 / EventLogPermissionEntryCollection.cs
//---------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System.Security.Permissions; using System.Collections; [ Serializable() ] public class EventLogPermissionEntryCollection : CollectionBase { EventLogPermission owner; ///internal EventLogPermissionEntryCollection(EventLogPermission owner, ResourcePermissionBaseEntry[] entries) { this.owner = owner; for (int index = 0; index < entries.Length; ++index) this.InnerList.Add(new EventLogPermissionEntry(entries[index])); } public EventLogPermissionEntry this[int index] { get { return (EventLogPermissionEntry)List[index]; } set { List[index] = value; } } public int Add(EventLogPermissionEntry value) { return List.Add(value); } public void AddRange(EventLogPermissionEntry[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } public void AddRange(EventLogPermissionEntryCollection value) { if (value == null) { throw new ArgumentNullException("value"); } int currentCount = value.Count; for (int i = 0; i < currentCount; i = ((i) + (1))) { this.Add(value[i]); } } public bool Contains(EventLogPermissionEntry value) { return List.Contains(value); } public void CopyTo(EventLogPermissionEntry[] array, int index) { List.CopyTo(array, index); } public int IndexOf(EventLogPermissionEntry value) { return List.IndexOf(value); } public void Insert(int index, EventLogPermissionEntry value) { List.Insert(index, value); } public void Remove(EventLogPermissionEntry value) { List.Remove(value); } /// protected override void OnClear() { this.owner.Clear(); } /// protected override void OnInsert(int index, object value) { this.owner.AddPermissionAccess((EventLogPermissionEntry)value); } /// protected override void OnRemove(int index, object value) { this.owner.RemovePermissionAccess((EventLogPermissionEntry)value); } /// protected override void OnSet(int index, object oldValue, object newValue) { this.owner.RemovePermissionAccess((EventLogPermissionEntry)oldValue); this.owner.AddPermissionAccess((EventLogPermissionEntry)newValue); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AliasGenerator.cs
- XmlNamespaceMappingCollection.cs
- ObjectReaderCompiler.cs
- OutputCacheProfile.cs
- NavigationProgressEventArgs.cs
- PathStreamGeometryContext.cs
- LicenseProviderAttribute.cs
- WebServicesSection.cs
- HandlerElement.cs
- precedingsibling.cs
- FormDesigner.cs
- RsaSecurityTokenAuthenticator.cs
- StylusPointPropertyId.cs
- XPathNodePointer.cs
- WebPartCancelEventArgs.cs
- StickyNoteAnnotations.cs
- NullEntityWrapper.cs
- BamlTreeNode.cs
- DbMetaDataFactory.cs
- RegisteredExpandoAttribute.cs
- MissingMemberException.cs
- TemplateEditingVerb.cs
- XmlChildNodes.cs
- ContentOperations.cs
- DllNotFoundException.cs
- ForwardPositionQuery.cs
- DragDrop.cs
- DefaultExpression.cs
- QilDataSource.cs
- CapacityStreamGeometryContext.cs
- WsdlImporterElement.cs
- EditingMode.cs
- PersistenceProviderElement.cs
- TextProviderWrapper.cs
- MasterPage.cs
- LayoutEditorPart.cs
- _PooledStream.cs
- GCHandleCookieTable.cs
- DropSource.cs
- CreateUserWizard.cs
- BamlCollectionHolder.cs
- IBuiltInEvidence.cs
- ObjectDataProvider.cs
- HtmlControl.cs
- MessageSecurityVersion.cs
- Util.cs
- ClientSponsor.cs
- InProcStateClientManager.cs
- TextTreeInsertUndoUnit.cs
- DBCSCodePageEncoding.cs
- ChannelCacheSettings.cs
- Base64WriteStateInfo.cs
- LocationFactory.cs
- JavaScriptObjectDeserializer.cs
- EntityType.cs
- COM2EnumConverter.cs
- Guid.cs
- ActivityDelegate.cs
- RegisteredExpandoAttribute.cs
- Privilege.cs
- DataTransferEventArgs.cs
- ParameterCollection.cs
- EdmRelationshipRoleAttribute.cs
- ClickablePoint.cs
- FileSystemEventArgs.cs
- ViewValidator.cs
- DataGridViewMethods.cs
- Native.cs
- RuleRef.cs
- StrokeDescriptor.cs
- PerformanceCounterCategory.cs
- WebPartConnectionsConfigureVerb.cs
- SolidBrush.cs
- WebRequest.cs
- EventSourceCreationData.cs
- LocalsItemDescription.cs
- PhysicalAddress.cs
- SqlMethodCallConverter.cs
- DbFunctionCommandTree.cs
- NeutralResourcesLanguageAttribute.cs
- RegexGroupCollection.cs
- IgnoreSectionHandler.cs
- BufferedGraphicsContext.cs
- ServiceDescriptionData.cs
- NativeMethods.cs
- TreeNodeConverter.cs
- SecurityPolicySection.cs
- ValidationEventArgs.cs
- CodeCompileUnit.cs
- DataGridViewLinkColumn.cs
- FileLogRecord.cs
- FormatConvertedBitmap.cs
- SettingsPropertyNotFoundException.cs
- AutoGeneratedField.cs
- QueryContinueDragEvent.cs
- ButtonChrome.cs
- AvTraceDetails.cs
- Activator.cs
- xdrvalidator.cs
- InvokePatternIdentifiers.cs