Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventLogPermission.cs / 1 / EventLogPermission.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System; using System.Security.Permissions; ////// [ Serializable() ] public sealed class EventLogPermission : ResourcePermissionBase { private EventLogPermissionEntryCollection innerCollection; ///[To be supplied.] ////// public EventLogPermission() { SetNames(); } ///[To be supplied.] ////// public EventLogPermission(PermissionState state) : base(state) { SetNames(); } ///[To be supplied.] ////// public EventLogPermission(EventLogPermissionAccess permissionAccess, string machineName) { SetNames(); this.AddPermissionAccess(new EventLogPermissionEntry(permissionAccess, machineName)); } ///[To be supplied.] ////// public EventLogPermission(EventLogPermissionEntry[] permissionAccessEntries) { if (permissionAccessEntries == null) throw new ArgumentNullException("permissionAccessEntries"); SetNames(); for (int index = 0; index < permissionAccessEntries.Length; ++index) this.AddPermissionAccess(permissionAccessEntries[index]); } ///[To be supplied.] ////// public EventLogPermissionEntryCollection PermissionEntries { get { if (this.innerCollection == null) this.innerCollection = new EventLogPermissionEntryCollection(this, base.GetPermissionEntries()); return this.innerCollection; } } ///[To be supplied.] ///internal void AddPermissionAccess(EventLogPermissionEntry entry) { base.AddPermissionAccess(entry.GetBaseEntry()); } /// internal new void Clear() { base.Clear(); } /// internal void RemovePermissionAccess(EventLogPermissionEntry entry) { base.RemovePermissionAccess(entry.GetBaseEntry()); } private void SetNames() { this.PermissionAccessType = typeof(EventLogPermissionAccess); this.TagNames = new string[]{"Machine"}; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefinitionBase.cs
- DrawListViewColumnHeaderEventArgs.cs
- XmlNode.cs
- ResourceReferenceExpressionConverter.cs
- XamlStream.cs
- FontInfo.cs
- LayoutEvent.cs
- DbProviderFactoriesConfigurationHandler.cs
- SqlFacetAttribute.cs
- ConnectionPoolManager.cs
- TableParaClient.cs
- PopupRootAutomationPeer.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CodeAssignStatement.cs
- ObjectHelper.cs
- WebEventCodes.cs
- Message.cs
- PreloadedPackages.cs
- FtpCachePolicyElement.cs
- TextBox.cs
- ManagedCodeMarkers.cs
- ItemsControlAutomationPeer.cs
- MobileCategoryAttribute.cs
- TextParagraph.cs
- ErrorHandler.cs
- Helpers.cs
- RefExpr.cs
- DataMisalignedException.cs
- OciLobLocator.cs
- WebColorConverter.cs
- ThreadInterruptedException.cs
- BufferedGenericXmlSecurityToken.cs
- CaseInsensitiveComparer.cs
- PrimitiveXmlSerializers.cs
- ControlEvent.cs
- SkipStoryboardToFill.cs
- DropDownList.cs
- BindingNavigatorDesigner.cs
- arclist.cs
- CompositionTarget.cs
- XmlConvert.cs
- GridItemPatternIdentifiers.cs
- dataSvcMapFileLoader.cs
- TypefaceMap.cs
- MetabaseServerConfig.cs
- Utility.cs
- AnnotationStore.cs
- UIInitializationException.cs
- SystemFonts.cs
- ProfileManager.cs
- RulePatternOps.cs
- PeerNodeAddress.cs
- KnownTypeDataContractResolver.cs
- XPathItem.cs
- CodeTypeParameter.cs
- DataList.cs
- RuleSettingsCollection.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ProfileInfo.cs
- SerializationFieldInfo.cs
- TypeElementCollection.cs
- NavigationEventArgs.cs
- ObjectDataSourceFilteringEventArgs.cs
- SchemaNotation.cs
- XmlSchemaNotation.cs
- ObjectReaderCompiler.cs
- XmlSchemaSubstitutionGroup.cs
- XmlNode.cs
- LicenseContext.cs
- PresentationUIStyleResources.cs
- GridViewCommandEventArgs.cs
- BindingNavigator.cs
- DbgUtil.cs
- Zone.cs
- ScrollBar.cs
- AnnotationService.cs
- CodeObjectCreateExpression.cs
- DataRow.cs
- PersonalizationAdministration.cs
- XmlSchemaSubstitutionGroup.cs
- XmlToDatasetMap.cs
- ExpressionNormalizer.cs
- XmlEnumAttribute.cs
- EdmEntityTypeAttribute.cs
- CallContext.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- IResourceProvider.cs
- MenuAutomationPeer.cs
- PathGeometry.cs
- FixedPageAutomationPeer.cs
- Peer.cs
- _LoggingObject.cs
- OracleTransaction.cs
- ImageAutomationPeer.cs
- DefaultValueConverter.cs
- HasCopySemanticsAttribute.cs
- MenuItemBindingCollection.cs
- ConstantCheck.cs
- SqlCachedBuffer.cs
- LayoutSettings.cs