Code:
/ FX-1434 / FX-1434 / 1.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
- ToolboxComponentsCreatedEventArgs.cs
- ToolConsole.cs
- Switch.cs
- DataGridView.cs
- HtmlMeta.cs
- WebSysDisplayNameAttribute.cs
- CacheMemory.cs
- WindowsGraphicsCacheManager.cs
- QilGeneratorEnv.cs
- SiteMapNodeItem.cs
- MethodCallTranslator.cs
- StringFunctions.cs
- ButtonField.cs
- EndPoint.cs
- CodeParameterDeclarationExpressionCollection.cs
- State.cs
- ProcessHostServerConfig.cs
- ProcessHostFactoryHelper.cs
- ArgumentValueSerializer.cs
- Signature.cs
- COM2ColorConverter.cs
- XmlEntityReference.cs
- PermissionAttributes.cs
- DescriptionAttribute.cs
- AudioFileOut.cs
- ExpressionEvaluator.cs
- PagedControl.cs
- HostSecurityManager.cs
- CodeMemberEvent.cs
- TraceLevelStore.cs
- DocumentGrid.cs
- GeometryModel3D.cs
- ImpersonationContext.cs
- XmlDocumentFragment.cs
- SkipQueryOptionExpression.cs
- SettingsAttributes.cs
- UnauthorizedWebPart.cs
- SyntaxCheck.cs
- SystemWebCachingSectionGroup.cs
- OpenTypeLayoutCache.cs
- StorageAssociationSetMapping.cs
- AssemblyCache.cs
- RegistryExceptionHelper.cs
- UDPClient.cs
- FrameworkElementAutomationPeer.cs
- CqlLexerHelpers.cs
- WindowsFormsHost.cs
- CheckPair.cs
- CacheMemory.cs
- StateMachine.cs
- TypeTypeConverter.cs
- RecognizedWordUnit.cs
- Evidence.cs
- DefaultTextStoreTextComposition.cs
- DynamicMethod.cs
- MetadataArtifactLoaderCompositeFile.cs
- Matrix.cs
- GroupItem.cs
- CharAnimationBase.cs
- MobileTemplatedControlDesigner.cs
- _DisconnectOverlappedAsyncResult.cs
- ObjectListDataBindEventArgs.cs
- RestHandler.cs
- NamedPermissionSet.cs
- PageClientProxyGenerator.cs
- ToolboxCategory.cs
- DefaultAutoFieldGenerator.cs
- TemplateKey.cs
- LinqDataSourceHelper.cs
- PopupEventArgs.cs
- NavigationHelper.cs
- ListBox.cs
- SpeechSynthesizer.cs
- Accessible.cs
- BufferBuilder.cs
- HeaderUtility.cs
- EncryptedType.cs
- CodeAttributeArgument.cs
- AttributeQuery.cs
- TextEndOfLine.cs
- MsmqBindingFilter.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- AVElementHelper.cs
- EntityCommandExecutionException.cs
- CursorConverter.cs
- ISAPIApplicationHost.cs
- EventHandlerService.cs
- XDeferredAxisSource.cs
- LookupBindingPropertiesAttribute.cs
- InkCollectionBehavior.cs
- CellQuery.cs
- DataObjectSettingDataEventArgs.cs
- ToolStripOverflow.cs
- TraceUtility.cs
- FileInfo.cs
- WindowHelperService.cs
- LinkLabel.cs
- FormDocumentDesigner.cs
- IndexedGlyphRun.cs
- HostingPreferredMapPath.cs