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
- RelatedImageListAttribute.cs
- DetailsViewDeleteEventArgs.cs
- MasterPageParser.cs
- AssemblyUtil.cs
- RequestQueryParser.cs
- RequestResizeEvent.cs
- MouseEvent.cs
- XmlMapping.cs
- ClientSettingsProvider.cs
- coordinatorscratchpad.cs
- StickyNoteAnnotations.cs
- _TransmitFileOverlappedAsyncResult.cs
- StylusPoint.cs
- StringComparer.cs
- TextFormatterHost.cs
- oledbmetadatacolumnnames.cs
- GridViewSelectEventArgs.cs
- HttpHandlerActionCollection.cs
- WebPartConnectionsEventArgs.cs
- ObjectStorage.cs
- ToolStripItemClickedEventArgs.cs
- EllipseGeometry.cs
- BitmapImage.cs
- figurelength.cs
- DispatchChannelSink.cs
- TextSearch.cs
- DependencyObject.cs
- MediaPlayer.cs
- SqlDataSourceQuery.cs
- MsmqIntegrationProcessProtocolHandler.cs
- GlobalizationAssembly.cs
- GeneralTransform2DTo3DTo2D.cs
- RawStylusSystemGestureInputReport.cs
- AutomationElement.cs
- documentsequencetextpointer.cs
- StylusPointProperties.cs
- ActivityExecutorOperation.cs
- RectConverter.cs
- ListBoxItemAutomationPeer.cs
- CodeDomSerializerException.cs
- ScriptIgnoreAttribute.cs
- XamlSerializationHelper.cs
- TextBoxBaseDesigner.cs
- ModelTreeEnumerator.cs
- PropertyItemInternal.cs
- TraceSection.cs
- NativeStructs.cs
- X509CertificateTokenFactoryCredential.cs
- MessageBox.cs
- QueryReaderSettings.cs
- RealProxy.cs
- ReflectEventDescriptor.cs
- RequestQueryParser.cs
- DataGridViewCell.cs
- BitmapEffectDrawingContextWalker.cs
- OracleConnectionFactory.cs
- DashStyle.cs
- HttpProcessUtility.cs
- ValueUtilsSmi.cs
- AsyncStreamReader.cs
- DurableOperationAttribute.cs
- AttributeExtensions.cs
- StylusDevice.cs
- CollectionEditorDialog.cs
- StringExpressionSet.cs
- FillErrorEventArgs.cs
- CngKeyCreationParameters.cs
- SqlXml.cs
- Expr.cs
- PriorityRange.cs
- ActionItem.cs
- Operand.cs
- TemplateInstanceAttribute.cs
- KeyValuePair.cs
- DayRenderEvent.cs
- LongValidatorAttribute.cs
- WindowsFormsHostAutomationPeer.cs
- Logging.cs
- FormClosedEvent.cs
- NullRuntimeConfig.cs
- Byte.cs
- ServiceNotStartedException.cs
- RepeatBehavior.cs
- StringSorter.cs
- CapabilitiesAssignment.cs
- ResetableIterator.cs
- EntityDataSourceWrapper.cs
- MetadataItemEmitter.cs
- TextBoxAutoCompleteSourceConverter.cs
- XomlDesignerLoader.cs
- _WinHttpWebProxyDataBuilder.cs
- SqlUserDefinedTypeAttribute.cs
- safex509handles.cs
- ContainerFilterService.cs
- DefaultEventAttribute.cs
- DynamicObjectAccessor.cs
- HMACSHA256.cs
- FixedTextPointer.cs
- NodeLabelEditEvent.cs
- _DigestClient.cs