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
- DataConnectionHelper.cs
- EventPropertyMap.cs
- FileDialogCustomPlaces.cs
- SystemResourceHost.cs
- MetadataItemCollectionFactory.cs
- x509utils.cs
- ReadOnlyTernaryTree.cs
- TaskScheduler.cs
- ApplicationSecurityManager.cs
- HttpPostedFile.cs
- ProjectionPlanCompiler.cs
- QueryFunctions.cs
- ICspAsymmetricAlgorithm.cs
- UnionCodeGroup.cs
- RegisteredDisposeScript.cs
- documentsequencetextview.cs
- ObjectTag.cs
- XhtmlBasicSelectionListAdapter.cs
- GeneralTransform.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- BitmapFrameEncode.cs
- PersonalizationStateInfo.cs
- DetailsViewDeletedEventArgs.cs
- FragmentQueryProcessor.cs
- WindowsToolbarAsMenu.cs
- FilePrompt.cs
- XmlSchemaObjectTable.cs
- TextRangeProviderWrapper.cs
- StringFormat.cs
- SMSvcHost.cs
- HttpRawResponse.cs
- cookiecollection.cs
- HttpInputStream.cs
- MemberInfoSerializationHolder.cs
- ToolStripDropTargetManager.cs
- Compilation.cs
- CommonDialog.cs
- StringToken.cs
- WebPartAddingEventArgs.cs
- VariableQuery.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WebCategoryAttribute.cs
- HyperLinkDataBindingHandler.cs
- CharConverter.cs
- TableLayoutCellPaintEventArgs.cs
- SurrogateSelector.cs
- FileLevelControlBuilderAttribute.cs
- ContainerFilterService.cs
- Transform.cs
- ClosableStream.cs
- PointF.cs
- RecognitionResult.cs
- DeploymentSection.cs
- DataControlFieldHeaderCell.cs
- GatewayDefinition.cs
- FixedSOMPage.cs
- HwndKeyboardInputProvider.cs
- SchemaImporterExtensionElement.cs
- ByteAnimationUsingKeyFrames.cs
- SQLInt16.cs
- _NetRes.cs
- ErrorsHelper.cs
- AnnotationResource.cs
- TextSpan.cs
- ExtentCqlBlock.cs
- ToolStripDropDownClosingEventArgs.cs
- NavigationPropertyEmitter.cs
- LocalIdKeyIdentifierClause.cs
- ImageInfo.cs
- ComponentChangingEvent.cs
- CloudCollection.cs
- FolderLevelBuildProviderCollection.cs
- DocumentsTrace.cs
- InkCollectionBehavior.cs
- UrlUtility.cs
- AudioStateChangedEventArgs.cs
- TextContainer.cs
- LineUtil.cs
- CodeDomSerializerException.cs
- LinqTreeNodeEvaluator.cs
- SecureUICommand.cs
- WindowInteractionStateTracker.cs
- SkewTransform.cs
- GeometryConverter.cs
- oledbmetadatacolumnnames.cs
- TextAutomationPeer.cs
- Matrix3DValueSerializer.cs
- ObjectListDesigner.cs
- DeviceSpecificChoiceCollection.cs
- ModuleElement.cs
- DataGridDesigner.cs
- WebEventTraceProvider.cs
- NullExtension.cs
- AmbiguousMatchException.cs
- SlotInfo.cs
- CatalogZoneDesigner.cs
- _AutoWebProxyScriptEngine.cs
- UpdateTranslator.cs
- CompModSwitches.cs
- SqlDataSourceAdvancedOptionsForm.cs