Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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"}; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RowBinding.cs
- ViewLoader.cs
- QuaternionValueSerializer.cs
- BaseTemplateParser.cs
- WebPartConnectionCollection.cs
- InstrumentationTracker.cs
- Nodes.cs
- UrlMappingsSection.cs
- SHA1Cng.cs
- FixedSOMFixedBlock.cs
- ColorTypeConverter.cs
- SemaphoreSlim.cs
- ToolStripContainer.cs
- __Filters.cs
- SharedPersonalizationStateInfo.cs
- QilFunction.cs
- DataGridColumnReorderingEventArgs.cs
- ClientRuntimeConfig.cs
- Attribute.cs
- EventProviderBase.cs
- InternalTypeHelper.cs
- Label.cs
- StringReader.cs
- SchemaImporterExtensionElementCollection.cs
- CalendarTable.cs
- BuildProvider.cs
- Attributes.cs
- ConfigXmlText.cs
- AccessControlList.cs
- NavigationHelper.cs
- XsltConvert.cs
- MenuAdapter.cs
- CryptoApi.cs
- JsonByteArrayDataContract.cs
- TextEndOfLine.cs
- ObjectCacheHost.cs
- CommandTreeTypeHelper.cs
- RegexRunner.cs
- ErrorFormatter.cs
- ResourcePermissionBase.cs
- DesignerActionMethodItem.cs
- DockPattern.cs
- TypeValidationEventArgs.cs
- AsymmetricSignatureFormatter.cs
- Bits.cs
- CapabilitiesState.cs
- Calendar.cs
- UniqueEventHelper.cs
- HtmlElementEventArgs.cs
- GeneratedContractType.cs
- GridViewSelectEventArgs.cs
- arc.cs
- ModelItem.cs
- MatrixTransform.cs
- TextFormatterHost.cs
- ScriptResourceInfo.cs
- CategoryNameCollection.cs
- NameScope.cs
- ValueType.cs
- TaskFileService.cs
- CreateRefExpr.cs
- ProxyAssemblyNotLoadedException.cs
- StaticDataManager.cs
- DragEvent.cs
- ConfigErrorGlyph.cs
- StorageInfo.cs
- PermissionAttributes.cs
- ToolBarButton.cs
- TagNameToTypeMapper.cs
- Italic.cs
- FreeFormDesigner.cs
- HandledEventArgs.cs
- CompilerResults.cs
- CompilationUtil.cs
- WebPartVerb.cs
- URL.cs
- SiteMapDataSourceView.cs
- MenuItemStyle.cs
- ProtocolsSection.cs
- XamlParser.cs
- DefaultTraceListener.cs
- XDeferredAxisSource.cs
- PointAnimationUsingPath.cs
- DataViewManagerListItemTypeDescriptor.cs
- ConfigXmlWhitespace.cs
- PageParserFilter.cs
- MemberInfoSerializationHolder.cs
- DocumentPaginator.cs
- WebPartCancelEventArgs.cs
- PermissionAttributes.cs
- EventKeyword.cs
- CatalogZone.cs
- _ChunkParse.cs
- GregorianCalendarHelper.cs
- BulletChrome.cs
- BinaryObjectInfo.cs
- ClientApiGenerator.cs
- RowUpdatedEventArgs.cs
- DetailsViewPageEventArgs.cs
- CompressStream.cs