Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MemberCollection.cs
- HttpStreamFormatter.cs
- TypeInformation.cs
- XmlNamespaceMappingCollection.cs
- SpecularMaterial.cs
- ConfigsHelper.cs
- Sequence.cs
- QueryContinueDragEventArgs.cs
- WebPartCloseVerb.cs
- TopClause.cs
- BamlRecordReader.cs
- RtfControlWordInfo.cs
- NonVisualControlAttribute.cs
- Msec.cs
- StylusLogic.cs
- GiveFeedbackEventArgs.cs
- SourceLineInfo.cs
- Site.cs
- ScrollBarRenderer.cs
- __Filters.cs
- StrongNameUtility.cs
- XmlUnspecifiedAttribute.cs
- StrokeNode.cs
- columnmapkeybuilder.cs
- ImageCollectionCodeDomSerializer.cs
- SecurityContext.cs
- XmlNamespaceMapping.cs
- Column.cs
- mansign.cs
- ReferentialConstraint.cs
- RuleValidation.cs
- SHA1Managed.cs
- OutputCacheSettings.cs
- HealthMonitoringSection.cs
- DbException.cs
- InfoCardMetadataExchangeClient.cs
- codemethodreferenceexpression.cs
- BadImageFormatException.cs
- AttributeData.cs
- XsdValidatingReader.cs
- SafeCoTaskMem.cs
- BitSet.cs
- WaitingCursor.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- QilXmlReader.cs
- SerializationStore.cs
- DispatcherTimer.cs
- GridView.cs
- ResizingMessageFilter.cs
- DiscoveryOperationContext.cs
- FunctionQuery.cs
- HttpServerChannel.cs
- TextEditorMouse.cs
- CategoryAttribute.cs
- SerializationException.cs
- BufferModeSettings.cs
- EntityDataSourceContextCreatingEventArgs.cs
- CompiledXpathExpr.cs
- PrePrepareMethodAttribute.cs
- LocalizeDesigner.cs
- Oid.cs
- OracleDataReader.cs
- SamlDelegatingWriter.cs
- ChildTable.cs
- MimeTypePropertyAttribute.cs
- TreeViewEvent.cs
- DetailsViewRowCollection.cs
- SqlPersonalizationProvider.cs
- FixedTextBuilder.cs
- Matrix.cs
- CompilerInfo.cs
- ConditionalBranch.cs
- ErrorWrapper.cs
- View.cs
- SafeHandles.cs
- StringBlob.cs
- _Rfc2616CacheValidators.cs
- StatusBar.cs
- SByteConverter.cs
- OdbcException.cs
- HandleRef.cs
- StringUtil.cs
- EntityDesignerDataSourceView.cs
- DataTableNameHandler.cs
- ButtonBase.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- EmptyControlCollection.cs
- processwaithandle.cs
- TimeSpan.cs
- SwitchLevelAttribute.cs
- DecimalAnimation.cs
- Soap12ProtocolReflector.cs
- FormViewCommandEventArgs.cs
- EventsTab.cs
- CultureTable.cs
- Help.cs
- RelationshipConstraintValidator.cs
- xmlformatgeneratorstatics.cs
- PointF.cs
- ObjectContext.cs