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
- RemoteHelper.cs
- RequestContext.cs
- EventMappingSettings.cs
- ExpressionWriter.cs
- DateTimeEditor.cs
- ScopelessEnumAttribute.cs
- List.cs
- SoapInteropTypes.cs
- Int32Rect.cs
- ReservationCollection.cs
- WebPartChrome.cs
- Command.cs
- ActivityXamlServices.cs
- ParserHooks.cs
- WindowsStartMenu.cs
- EpmCustomContentDeSerializer.cs
- TextEditorMouse.cs
- CreateParams.cs
- ParseElementCollection.cs
- Compress.cs
- Setter.cs
- GifBitmapEncoder.cs
- WebResourceUtil.cs
- QfeChecker.cs
- EntitySetBaseCollection.cs
- WebPartCatalogAddVerb.cs
- _Win32.cs
- EnumConverter.cs
- CompilerCollection.cs
- ConfigurationLoaderException.cs
- Track.cs
- ConditionalBranch.cs
- CommonDialog.cs
- TransactionManager.cs
- MediaTimeline.cs
- cookieexception.cs
- EntitySetBaseCollection.cs
- TdsParameterSetter.cs
- CustomError.cs
- MsdtcClusterUtils.cs
- SharedStream.cs
- VisualBrush.cs
- RelationshipManager.cs
- AlphaSortedEnumConverter.cs
- BaseConfigurationRecord.cs
- Command.cs
- MenuItem.cs
- DataViewSettingCollection.cs
- ServiceModelExtensionCollectionElement.cs
- ContainerFilterService.cs
- TextEffectCollection.cs
- LocationSectionRecord.cs
- AsyncPostBackTrigger.cs
- ObsoleteAttribute.cs
- JsonReaderWriterFactory.cs
- XsltLibrary.cs
- DisposableCollectionWrapper.cs
- dsa.cs
- _SSPISessionCache.cs
- GridViewCommandEventArgs.cs
- BindingContext.cs
- PrintPreviewControl.cs
- WebContext.cs
- HttpCachePolicy.cs
- EncoderBestFitFallback.cs
- DesignerTransactionCloseEvent.cs
- QuaternionAnimation.cs
- PngBitmapEncoder.cs
- TextSelection.cs
- DataGridViewRowConverter.cs
- RpcResponse.cs
- DataControlField.cs
- ImageSourceConverter.cs
- TreeNodeEventArgs.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- TextTreeTextBlock.cs
- FunctionUpdateCommand.cs
- CommandConverter.cs
- FactoryGenerator.cs
- LambdaCompiler.Lambda.cs
- RijndaelCryptoServiceProvider.cs
- ChannelServices.cs
- SelectionItemPattern.cs
- VisualBasicSettingsHandler.cs
- Accessible.cs
- FlowDocumentPage.cs
- OdbcConnectionPoolProviderInfo.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- FormsAuthenticationTicket.cs
- SamlAudienceRestrictionCondition.cs
- TypeConverterBase.cs
- FixedStringLookup.cs
- XpsDocument.cs
- PasswordBox.cs
- VBCodeProvider.cs
- ListSortDescriptionCollection.cs
- NumericExpr.cs
- MemberDescriptor.cs
- DataGridItemCollection.cs
- Currency.cs