Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / InstanceDataCollectionCollection.cs / 1305376 / 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
- XsltCompileContext.cs
- DecimalAverageAggregationOperator.cs
- SoapParser.cs
- ScopedKnownTypes.cs
- ASCIIEncoding.cs
- DirectionalLight.cs
- Stack.cs
- Int32CAMarshaler.cs
- DataGridColumn.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ParameterInfo.cs
- QueryOutputWriter.cs
- VariableAction.cs
- SizeChangedEventArgs.cs
- DesignerPerfEventProvider.cs
- DbConnectionFactory.cs
- Query.cs
- TextTreeNode.cs
- ValueConversionAttribute.cs
- Crypto.cs
- ConnectionStringSettingsCollection.cs
- RightsManagementPermission.cs
- TextReturnReader.cs
- RegexParser.cs
- FlowLayoutPanel.cs
- StaticTextPointer.cs
- XsltQilFactory.cs
- DynamicMetaObject.cs
- XmlComment.cs
- EntityViewGenerationConstants.cs
- ProfileManager.cs
- CallSiteBinder.cs
- _LocalDataStore.cs
- Interlocked.cs
- HtmlTableCell.cs
- XmlUnspecifiedAttribute.cs
- WindowsFormsSectionHandler.cs
- NativeCompoundFileAPIs.cs
- ContentElementAutomationPeer.cs
- ItemCheckEvent.cs
- TextViewBase.cs
- Latin1Encoding.cs
- ObjectViewEntityCollectionData.cs
- SettingsProviderCollection.cs
- TokenBasedSet.cs
- XslAstAnalyzer.cs
- ManagedCodeMarkers.cs
- LockCookie.cs
- EnumerationRangeValidationUtil.cs
- Int32AnimationUsingKeyFrames.cs
- ManagementOperationWatcher.cs
- ParameterToken.cs
- DrawingBrush.cs
- FullTextBreakpoint.cs
- WsatAdminException.cs
- BooleanToVisibilityConverter.cs
- SafeBitVector32.cs
- ApplicationFileCodeDomTreeGenerator.cs
- JoinGraph.cs
- ExpressionBindings.cs
- EntitySqlException.cs
- Matrix3D.cs
- ChildChangedEventArgs.cs
- VisualBrush.cs
- Sql8ExpressionRewriter.cs
- FtpRequestCacheValidator.cs
- SafeCryptContextHandle.cs
- MemberDescriptor.cs
- ObjectDataSource.cs
- DataGridViewCellCollection.cs
- RulePatternOps.cs
- PrimaryKeyTypeConverter.cs
- HttpSessionStateBase.cs
- FontCollection.cs
- ProfileSection.cs
- SqlColumnizer.cs
- CountdownEvent.cs
- CodePageUtils.cs
- FilterInvalidBodyAccessException.cs
- UDPClient.cs
- UnionCqlBlock.cs
- TextSpanModifier.cs
- InkCanvasAutomationPeer.cs
- DataColumnPropertyDescriptor.cs
- ImageFormatConverter.cs
- HMAC.cs
- TextBoxBase.cs
- safesecurityhelperavalon.cs
- Exceptions.cs
- UnsafeNativeMethods.cs
- ExceptionValidationRule.cs
- TreeNodeMouseHoverEvent.cs
- XmlSerializableReader.cs
- InvalidDataException.cs
- DataViewSettingCollection.cs
- Profiler.cs
- Trigger.cs
- ClientBuildManager.cs
- UnauthorizedWebPart.cs