Code:
/ FX-1434 / FX-1434 / 1.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
- PreProcessor.cs
- HatchBrush.cs
- XmlNodeChangedEventManager.cs
- XhtmlBasicCommandAdapter.cs
- ImageClickEventArgs.cs
- ProxyHwnd.cs
- SafeLibraryHandle.cs
- KeyNotFoundException.cs
- RegistryHandle.cs
- SpecialFolderEnumConverter.cs
- WebZone.cs
- TransformedBitmap.cs
- CookieHandler.cs
- TileBrush.cs
- Formatter.cs
- WebBrowserNavigatingEventHandler.cs
- HtmlTable.cs
- SqlClientPermission.cs
- WorkerProcess.cs
- RemotingClientProxy.cs
- SerializationException.cs
- NativeMethodsOther.cs
- StringAnimationUsingKeyFrames.cs
- RecordManager.cs
- AlignmentYValidation.cs
- SelectedDatesCollection.cs
- ExtentJoinTreeNode.cs
- FileSystemInfo.cs
- ContentDisposition.cs
- TextInfo.cs
- BookmarkEventArgs.cs
- ActivityExecutor.cs
- AlignmentXValidation.cs
- RunWorkerCompletedEventArgs.cs
- SatelliteContractVersionAttribute.cs
- MeasureData.cs
- __Error.cs
- XmlUrlResolver.cs
- HttpListenerException.cs
- Viewport3DAutomationPeer.cs
- SingleTagSectionHandler.cs
- BindingList.cs
- Base64Stream.cs
- XamlBuildProvider.cs
- XPathCompileException.cs
- UserUseLicenseDictionaryLoader.cs
- FixedDocument.cs
- EnumConverter.cs
- ValidationError.cs
- TransformationRules.cs
- BitmapSourceSafeMILHandle.cs
- TimelineClockCollection.cs
- FillRuleValidation.cs
- StringComparer.cs
- MarkedHighlightComponent.cs
- EventRecordWrittenEventArgs.cs
- TableAdapterManagerGenerator.cs
- PrintDocument.cs
- XmlNavigatorStack.cs
- DefaultValueConverter.cs
- PathSegmentCollection.cs
- IImplicitResourceProvider.cs
- _BasicClient.cs
- Int32RectConverter.cs
- ObjectToken.cs
- Internal.cs
- IxmlLineInfo.cs
- SqlBulkCopyColumnMapping.cs
- CollaborationHelperFunctions.cs
- glyphs.cs
- SmtpSection.cs
- XmlSchemaImporter.cs
- PasswordRecovery.cs
- ComboBoxAutomationPeer.cs
- TypeLoadException.cs
- SafeMILHandle.cs
- BaseResourcesBuildProvider.cs
- XPathAxisIterator.cs
- FormattedText.cs
- MenuItemBindingCollection.cs
- LongCountAggregationOperator.cs
- ToolStripLocationCancelEventArgs.cs
- SecondaryIndex.cs
- MultiTargetingUtil.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- FormatException.cs
- LineBreak.cs
- ToolStripPanelCell.cs
- Message.cs
- CodeExporter.cs
- Win32.cs
- TransformerInfo.cs
- MiniCustomAttributeInfo.cs
- RawTextInputReport.cs
- RootBrowserWindowAutomationPeer.cs
- XmlQualifiedName.cs
- TypeUsage.cs
- EvidenceTypeDescriptor.cs
- cookieexception.cs
- ReachPageContentSerializer.cs