Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Services / Monitoring / system / Diagnosticts / PerformanceCounterPermission.cs / 1 / PerformanceCounterPermission.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System; using System.Security.Permissions; ////// [ Serializable() ] public sealed class PerformanceCounterPermission : ResourcePermissionBase { private PerformanceCounterPermissionEntryCollection innerCollection; ///[To be supplied.] ////// public PerformanceCounterPermission() { SetNames(); } ///[To be supplied.] ////// public PerformanceCounterPermission(PermissionState state) : base(state) { SetNames(); } ///[To be supplied.] ////// public PerformanceCounterPermission(PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName) { SetNames(); this.AddPermissionAccess(new PerformanceCounterPermissionEntry(permissionAccess, machineName, categoryName)); } ///[To be supplied.] ////// public PerformanceCounterPermission(PerformanceCounterPermissionEntry[] 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 PerformanceCounterPermissionEntryCollection PermissionEntries { get { if (this.innerCollection == null) this.innerCollection = new PerformanceCounterPermissionEntryCollection(this, base.GetPermissionEntries()); return this.innerCollection; } } ///[To be supplied.] ///internal void AddPermissionAccess(PerformanceCounterPermissionEntry entry) { base.AddPermissionAccess(entry.GetBaseEntry()); } /// internal new void Clear() { base.Clear(); } /// internal void RemovePermissionAccess(PerformanceCounterPermissionEntry entry) { base.RemovePermissionAccess(entry.GetBaseEntry()); } private void SetNames() { this.PermissionAccessType = typeof(PerformanceCounterPermissionAccess); this.TagNames = new string[]{"Machine", "Category"}; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System; using System.Security.Permissions; ////// [ Serializable() ] public sealed class PerformanceCounterPermission : ResourcePermissionBase { private PerformanceCounterPermissionEntryCollection innerCollection; ///[To be supplied.] ////// public PerformanceCounterPermission() { SetNames(); } ///[To be supplied.] ////// public PerformanceCounterPermission(PermissionState state) : base(state) { SetNames(); } ///[To be supplied.] ////// public PerformanceCounterPermission(PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName) { SetNames(); this.AddPermissionAccess(new PerformanceCounterPermissionEntry(permissionAccess, machineName, categoryName)); } ///[To be supplied.] ////// public PerformanceCounterPermission(PerformanceCounterPermissionEntry[] 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 PerformanceCounterPermissionEntryCollection PermissionEntries { get { if (this.innerCollection == null) this.innerCollection = new PerformanceCounterPermissionEntryCollection(this, base.GetPermissionEntries()); return this.innerCollection; } } ///[To be supplied.] ///internal void AddPermissionAccess(PerformanceCounterPermissionEntry entry) { base.AddPermissionAccess(entry.GetBaseEntry()); } /// internal new void Clear() { base.Clear(); } /// internal void RemovePermissionAccess(PerformanceCounterPermissionEntry entry) { base.RemovePermissionAccess(entry.GetBaseEntry()); } private void SetNames() { this.PermissionAccessType = typeof(PerformanceCounterPermissionAccess); this.TagNames = new string[]{"Machine", "Category"}; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsListViewItemCheckBox.cs
- WebPartDisplayModeEventArgs.cs
- GeneratedContractType.cs
- GroupBox.cs
- ServiceModelEnumValidatorAttribute.cs
- SubMenuStyleCollection.cs
- SplitterCancelEvent.cs
- MimeObjectFactory.cs
- RefreshEventArgs.cs
- Attachment.cs
- OdbcConnectionString.cs
- AsymmetricKeyExchangeFormatter.cs
- ObjectListCommand.cs
- SerialPinChanges.cs
- ExceptionHandler.cs
- TreeSet.cs
- QilValidationVisitor.cs
- ProcessModule.cs
- __Error.cs
- NameValueConfigurationCollection.cs
- AppSettingsExpressionBuilder.cs
- DES.cs
- StylusDevice.cs
- FieldBuilder.cs
- EntityCommandCompilationException.cs
- IDReferencePropertyAttribute.cs
- PermissionSetEnumerator.cs
- DataGridViewToolTip.cs
- ArrangedElement.cs
- HyperLink.cs
- DisableDpiAwarenessAttribute.cs
- SqlErrorCollection.cs
- XsdDataContractImporter.cs
- SafeNativeMethods.cs
- AutoGeneratedField.cs
- DataBoundLiteralControl.cs
- IResourceProvider.cs
- storepermissionattribute.cs
- DuplicateWaitObjectException.cs
- QilBinary.cs
- SyndicationContent.cs
- DataTableClearEvent.cs
- WindowPattern.cs
- JsonStringDataContract.cs
- DiscoveryCallbackBehavior.cs
- TextLine.cs
- _LoggingObject.cs
- Block.cs
- XamlNamespaceHelper.cs
- KnownColorTable.cs
- QueryContinueDragEvent.cs
- EmbeddedObject.cs
- _SecureChannel.cs
- AutomationPatternInfo.cs
- HierarchicalDataBoundControlAdapter.cs
- TaskHelper.cs
- shaperfactory.cs
- RunWorkerCompletedEventArgs.cs
- MetadataCollection.cs
- StorageEndPropertyMapping.cs
- BitVector32.cs
- LassoSelectionBehavior.cs
- HyperLink.cs
- DataColumn.cs
- GetPageCompletedEventArgs.cs
- ConsumerConnectionPoint.cs
- MarkupProperty.cs
- WindowsClaimSet.cs
- SqlDataSourceDesigner.cs
- PhysicalFontFamily.cs
- TextViewBase.cs
- TcpTransportManager.cs
- SmtpFailedRecipientException.cs
- OleDbDataReader.cs
- ResourcePermissionBase.cs
- FaultPropagationQuery.cs
- RtfControlWordInfo.cs
- RadioButtonAutomationPeer.cs
- ResolveInfo.cs
- TimersDescriptionAttribute.cs
- EntityContainerAssociationSet.cs
- ExpressionQuoter.cs
- base64Transforms.cs
- Frame.cs
- ServiceEndpointCollection.cs
- AppearanceEditorPart.cs
- DataGridItem.cs
- GraphicsPath.cs
- UpdateRecord.cs
- StylusCollection.cs
- DataSpaceManager.cs
- ErrorWebPart.cs
- ReachFixedDocumentSerializerAsync.cs
- TextSelectionProcessor.cs
- TrackingQueryElement.cs
- AutomationIdentifierGuids.cs
- BitmapEffectState.cs
- ToolboxDataAttribute.cs
- HttpCachePolicyBase.cs
- FileUtil.cs