Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlMembersMapping.cs
- OlePropertyStructs.cs
- storepermission.cs
- DirectionalLight.cs
- CdpEqualityComparer.cs
- TdsParserSessionPool.cs
- BindableAttribute.cs
- JapaneseLunisolarCalendar.cs
- DuplicateWaitObjectException.cs
- WebPartConnectionsCloseVerb.cs
- DnsCache.cs
- TimeSpanMinutesConverter.cs
- WorkerRequest.cs
- DbResourceAllocator.cs
- DataSourceConverter.cs
- StorageEntityContainerMapping.cs
- DescriptionAttribute.cs
- TimelineCollection.cs
- DataGridCaption.cs
- Win32SafeHandles.cs
- NumericUpDown.cs
- ReceiveActivityValidator.cs
- QueryCacheManager.cs
- ServiceEndpointElement.cs
- DataGridViewDataErrorEventArgs.cs
- objectresult_tresulttype.cs
- ListGeneralPage.cs
- RawAppCommandInputReport.cs
- ProcessModelSection.cs
- BlurBitmapEffect.cs
- TargetException.cs
- StructuredTypeEmitter.cs
- EventHandlerService.cs
- WriteableBitmap.cs
- FileLogRecordStream.cs
- ExtendedPropertyCollection.cs
- SimpleApplicationHost.cs
- SHA256.cs
- XmlUtf8RawTextWriter.cs
- XPathConvert.cs
- Dynamic.cs
- PagedDataSource.cs
- PeerCollaborationPermission.cs
- Binding.cs
- GenerateScriptTypeAttribute.cs
- SelectionGlyph.cs
- UnsafeNativeMethodsPenimc.cs
- HtmlInputSubmit.cs
- SignatureToken.cs
- GZipStream.cs
- Quaternion.cs
- InputProcessorProfilesLoader.cs
- TemplatePropertyEntry.cs
- HwndSource.cs
- SystemColors.cs
- codemethodreferenceexpression.cs
- AsyncPostBackTrigger.cs
- DefaultValueTypeConverter.cs
- XmlSerializerFactory.cs
- CurrencyWrapper.cs
- MessageQueueConverter.cs
- DataMemberListEditor.cs
- PrivateFontCollection.cs
- DirtyTextRange.cs
- mda.cs
- FixedSOMTextRun.cs
- TextCompositionManager.cs
- WebExceptionStatus.cs
- DescendentsWalker.cs
- StreamInfo.cs
- RunClient.cs
- Polygon.cs
- AppDomainShutdownMonitor.cs
- AssemblyInfo.cs
- AutoGeneratedFieldProperties.cs
- CharEnumerator.cs
- DataColumnPropertyDescriptor.cs
- DataGridViewRowsRemovedEventArgs.cs
- CellLabel.cs
- ListChangedEventArgs.cs
- MobileRedirect.cs
- ConditionCollection.cs
- BitmapPalettes.cs
- TextMessageEncodingElement.cs
- login.cs
- NativeBuffer.cs
- IgnoreFlushAndCloseStream.cs
- SchemaCollectionPreprocessor.cs
- DesignerObjectListAdapter.cs
- LongTypeConverter.cs
- ComplexObject.cs
- CompositionAdorner.cs
- StatusBarDesigner.cs
- IfAction.cs
- WebPartUserCapability.cs
- QueryOptionExpression.cs
- ThicknessAnimationBase.cs
- MissingFieldException.cs
- ColumnMapVisitor.cs
- MarginsConverter.cs