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
- ArraySubsetEnumerator.cs
- ImageIndexEditor.cs
- EdmConstants.cs
- LinkedResource.cs
- ImageAnimator.cs
- PassportAuthenticationEventArgs.cs
- NamespaceExpr.cs
- HttpContextServiceHost.cs
- ParsedAttributeCollection.cs
- XmlQueryRuntime.cs
- BooleanFacetDescriptionElement.cs
- webproxy.cs
- ProfileGroupSettingsCollection.cs
- ProfileBuildProvider.cs
- OpenTypeMethods.cs
- CellTreeSimplifier.cs
- securitycriticaldataformultiplegetandset.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- SessionEndingEventArgs.cs
- XMLDiffLoader.cs
- ImageFormat.cs
- LazyTextWriterCreator.cs
- GridPattern.cs
- TreeNodeEventArgs.cs
- ScriptManagerProxy.cs
- PagedDataSource.cs
- GroupDescription.cs
- CurrentTimeZone.cs
- ContentType.cs
- EditingMode.cs
- ScriptBehaviorDescriptor.cs
- IPAddress.cs
- XamlFxTrace.cs
- ContainerParagraph.cs
- UnicastIPAddressInformationCollection.cs
- SettingsSavedEventArgs.cs
- Point3DKeyFrameCollection.cs
- StrokeNodeOperations2.cs
- Font.cs
- BaseProcessor.cs
- String.cs
- PersistChildrenAttribute.cs
- XmlEventCache.cs
- NativeObjectSecurity.cs
- InvalidPropValue.cs
- DataStorage.cs
- GroupBoxAutomationPeer.cs
- ObjectConverter.cs
- ItemCollection.cs
- SynchronizationContextHelper.cs
- _ProxyChain.cs
- Authorization.cs
- SerializationObjectManager.cs
- PreviewPrintController.cs
- ReadWriteObjectLock.cs
- WindowsFormsSectionHandler.cs
- AspNetSynchronizationContext.cs
- RelOps.cs
- ImageListDesigner.cs
- CalloutQueueItem.cs
- AstTree.cs
- AsyncStreamReader.cs
- TextEditorDragDrop.cs
- FlowDocument.cs
- ServiceManager.cs
- StsCommunicationException.cs
- ConfigurationManagerHelperFactory.cs
- ScriptResourceAttribute.cs
- FontResourceCache.cs
- CommonRemoteMemoryBlock.cs
- ToolStripOverflowButton.cs
- ObjectDataSourceView.cs
- XmlArrayItemAttributes.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CodeObjectCreateExpression.cs
- CompilerResults.cs
- TypeViewSchema.cs
- XmlTypeMapping.cs
- Separator.cs
- ADMembershipProvider.cs
- DragStartedEventArgs.cs
- TextServicesContext.cs
- GrammarBuilder.cs
- DataColumnChangeEvent.cs
- SystemResources.cs
- ConditionedDesigner.cs
- FontDriver.cs
- XmlUtil.cs
- EndpointIdentity.cs
- FontFamily.cs
- DropShadowEffect.cs
- Convert.cs
- PageThemeCodeDomTreeGenerator.cs
- UnsafeCollabNativeMethods.cs
- BuildDependencySet.cs
- MultiView.cs
- SqlDelegatedTransaction.cs
- TransformValueSerializer.cs
- ReadOnlyDictionary.cs
- VBIdentifierTrimConverter.cs