Code:
/ 4.0 / 4.0 / untmp / 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.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Quad.cs
- TdsParameterSetter.cs
- ClientSideQueueItem.cs
- WaitForChangedResult.cs
- Ray3DHitTestResult.cs
- DetailsViewCommandEventArgs.cs
- HtmlTableRow.cs
- FileVersionInfo.cs
- PropertyKey.cs
- XmlArrayItemAttribute.cs
- PropertyIDSet.cs
- ToolboxItemAttribute.cs
- CellTreeSimplifier.cs
- GenericsNotImplementedException.cs
- Transform.cs
- WebServiceMethodData.cs
- ContainerCodeDomSerializer.cs
- ReflectionUtil.cs
- SizeConverter.cs
- SmtpReplyReader.cs
- ModuleElement.cs
- SerializationSectionGroup.cs
- CodeAttributeDeclarationCollection.cs
- CursorConverter.cs
- DocumentCollection.cs
- ListViewPagedDataSource.cs
- PackageDigitalSignatureManager.cs
- DbDataReader.cs
- XmlProcessingInstruction.cs
- ObjectListGeneralPage.cs
- ImageInfo.cs
- UrlUtility.cs
- wgx_exports.cs
- FreeFormDesigner.cs
- WebPartMovingEventArgs.cs
- XmlSchema.cs
- UrlMappingsSection.cs
- RelationshipNavigation.cs
- webbrowsersite.cs
- MsmqBindingFilter.cs
- Mutex.cs
- XMLSchema.cs
- Transform3DGroup.cs
- DetailsViewPageEventArgs.cs
- _emptywebproxy.cs
- List.cs
- SecurityManager.cs
- GroupQuery.cs
- WebServiceAttribute.cs
- DataControlCommands.cs
- SupportsEventValidationAttribute.cs
- HttpMethodAttribute.cs
- SoapIgnoreAttribute.cs
- RowCache.cs
- Size3DValueSerializer.cs
- ToolStripGripRenderEventArgs.cs
- FileDataSourceCache.cs
- HttpWebRequestElement.cs
- CodeTypeDelegate.cs
- WSDualHttpSecurityElement.cs
- CommentEmitter.cs
- GraphicsContainer.cs
- BufferedWebEventProvider.cs
- TextSpan.cs
- MetadataItemCollectionFactory.cs
- ClientBuildManager.cs
- TransformerInfoCollection.cs
- EnumMemberAttribute.cs
- StdRegProviderWrapper.cs
- EntityDataSourceSelectingEventArgs.cs
- FileDetails.cs
- AnimationLayer.cs
- TransferMode.cs
- Membership.cs
- RoutedCommand.cs
- ChannelToken.cs
- XPathAxisIterator.cs
- DocumentPaginator.cs
- NameValueSectionHandler.cs
- QueryTaskGroupState.cs
- SamlAssertion.cs
- ReadOnlyDataSource.cs
- _ShellExpression.cs
- InkCanvasAutomationPeer.cs
- SQLInt64Storage.cs
- DiagnosticsConfiguration.cs
- DbConnectionPoolGroup.cs
- TextChangedEventArgs.cs
- RC2CryptoServiceProvider.cs
- Int32Animation.cs
- SafeNativeMethods.cs
- DataGridRowHeaderAutomationPeer.cs
- SmtpReplyReader.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlBindingWorker.cs
- DataRecordInfo.cs
- FormClosedEvent.cs
- UriTemplateMatchException.cs
- WebReferencesBuildProvider.cs
- AutomationEventArgs.cs