Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / InstanceDataCollectionCollection.cs / 1 / InstanceDataCollectionCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System.Diagnostics; using System; using System.Collections; using System.Globalization; ////// The collection returned from the public class InstanceDataCollectionCollection : DictionaryBase { [Obsolete("This constructor has been deprecated. Please use System.Diagnostics.PerformanceCounterCategory.ReadCategory() to get an instance of this collection instead. http://go.microsoft.com/fwlink/?linkid=14202")] public InstanceDataCollectionCollection() : base() {} ///method. /// that contains all the counter and instance data. /// The collection contains an InstanceDataCollection object for each counter. Each InstanceDataCollection /// object contains the performance data for all counters for that instance. In other words the data is /// indexed by counter name and then by instance name. /// /// public InstanceDataCollection this[string counterName] { get { if (counterName == null) throw new ArgumentNullException("counterName"); object objectName = counterName.ToLower(CultureInfo.InvariantCulture); return (InstanceDataCollection) Dictionary[objectName]; } } ///[To be supplied.] ////// public ICollection Keys { get { return Dictionary.Keys; } } ///[To be supplied.] ////// public ICollection Values { get { return Dictionary.Values; } } internal void Add(string counterName, InstanceDataCollection value) { object objectName = counterName.ToLower(CultureInfo.InvariantCulture); Dictionary.Add(objectName, value); } ///[To be supplied.] ////// public bool Contains(string counterName) { if (counterName == null) throw new ArgumentNullException("counterName"); object objectName = counterName.ToLower(CultureInfo.InvariantCulture); return Dictionary.Contains(objectName); } ///[To be supplied.] ////// public void CopyTo(InstanceDataCollection[] counters, int index) { Dictionary.Values.CopyTo((Array)counters, index); } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataItemEmitter.cs
- RootNamespaceAttribute.cs
- PrimaryKeyTypeConverter.cs
- TextEditorParagraphs.cs
- SqlParameterizer.cs
- _AutoWebProxyScriptHelper.cs
- RelatedCurrencyManager.cs
- HtmlPageAdapter.cs
- DefaultPropertyAttribute.cs
- TextLine.cs
- TextTreeRootNode.cs
- ExpressionDumper.cs
- WorkflowViewElement.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- XmlBoundElement.cs
- RuleSettingsCollection.cs
- LineSegment.cs
- NumericExpr.cs
- GridViewDeletedEventArgs.cs
- DesignerOptions.cs
- CompiledQueryCacheKey.cs
- DataGridItemEventArgs.cs
- TemplateParser.cs
- FormCollection.cs
- PolicyStatement.cs
- UInt32Storage.cs
- WindowsScrollBar.cs
- Point3DIndependentAnimationStorage.cs
- SequenceQuery.cs
- SoapCodeExporter.cs
- Main.cs
- RemoteWebConfigurationHost.cs
- MetadataCache.cs
- IisTraceListener.cs
- _DomainName.cs
- TemplatedWizardStep.cs
- PartialTrustVisibleAssembly.cs
- SharedUtils.cs
- AssemblyAttributesGoHere.cs
- ValidationHelper.cs
- AppearanceEditorPart.cs
- relpropertyhelper.cs
- Tool.cs
- MouseWheelEventArgs.cs
- IsolatedStoragePermission.cs
- WebRequestModulesSection.cs
- WebPartTransformerCollection.cs
- MenuAdapter.cs
- ToolStripProgressBar.cs
- BatchParser.cs
- AstNode.cs
- QilStrConcat.cs
- AcceleratedTokenAuthenticator.cs
- Keyboard.cs
- HuffmanTree.cs
- DataSourceControl.cs
- GroupBox.cs
- Line.cs
- SemaphoreFullException.cs
- ExpressionConverter.cs
- IndexOutOfRangeException.cs
- SelectedGridItemChangedEvent.cs
- SynchronizedChannelCollection.cs
- BaseResourcesBuildProvider.cs
- KnownAssemblyEntry.cs
- FlowDocumentScrollViewer.cs
- DataBoundControl.cs
- PrintingPermission.cs
- ObjectConverter.cs
- SqlServices.cs
- WebServiceHostFactory.cs
- DecoderNLS.cs
- DataGridViewSelectedCellCollection.cs
- SafeMILHandle.cs
- TaskFileService.cs
- CorePropertiesFilter.cs
- MonthCalendarDesigner.cs
- TaskHelper.cs
- ImageSourceValueSerializer.cs
- ContentElement.cs
- Internal.cs
- WebPartEditorApplyVerb.cs
- PageParser.cs
- EntityType.cs
- EntityProviderFactory.cs
- ClientApiGenerator.cs
- ScrollProperties.cs
- MailMessageEventArgs.cs
- WSSecurityPolicy12.cs
- SecurityContext.cs
- TimeSpanStorage.cs
- DataControlFieldsEditor.cs
- Style.cs
- TransformedBitmap.cs
- DesignerAdRotatorAdapter.cs
- SystemParameters.cs
- RootBrowserWindowAutomationPeer.cs
- ContentDisposition.cs
- CompressEmulationStream.cs
- Logging.cs