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 / InstanceDataCollection.cs / 1 / InstanceDataCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System; using System.Diagnostics; using System.Collections; using System.Globalization; ////// A collection containing all the instance data for a counter. This collection is contained in the /// public class InstanceDataCollection : DictionaryBase { private string counterName; ///when using the /// method. /// /// [Obsolete("This constructor has been deprecated. Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead. http://go.microsoft.com/fwlink/?linkid=14202")] public InstanceDataCollection(string counterName) { if (counterName == null) throw new ArgumentNullException("counterName"); this.counterName = counterName; } ///[To be supplied.] ////// public string CounterName { get { return counterName; } } ///[To be supplied.] ////// public ICollection Keys { get { return Dictionary.Keys; } } ///[To be supplied.] ////// public ICollection Values { get { return Dictionary.Values; } } ///[To be supplied.] ////// public InstanceData this[string instanceName] { get { if (instanceName == null) throw new ArgumentNullException("instanceName"); if (instanceName.Length == 0) instanceName = PerformanceCounterLib.SingleInstanceName; object objectName = instanceName.ToLower(CultureInfo.InvariantCulture); return (InstanceData) Dictionary[objectName]; } } internal void Add(string instanceName, InstanceData value) { object objectName = instanceName.ToLower(CultureInfo.InvariantCulture); Dictionary.Add(objectName, value); } ///[To be supplied.] ////// public bool Contains(string instanceName) { if (instanceName == null) throw new ArgumentNullException("instanceName"); object objectName = instanceName.ToLower(CultureInfo.InvariantCulture); return Dictionary.Contains(objectName); } ///[To be supplied.] ////// public void CopyTo(InstanceData[] instances, int index) { Dictionary.Values.CopyTo((Array)instances, 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; using System.Diagnostics; using System.Collections; using System.Globalization; ////// A collection containing all the instance data for a counter. This collection is contained in the /// public class InstanceDataCollection : DictionaryBase { private string counterName; ///when using the /// method. /// /// [Obsolete("This constructor has been deprecated. Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead. http://go.microsoft.com/fwlink/?linkid=14202")] public InstanceDataCollection(string counterName) { if (counterName == null) throw new ArgumentNullException("counterName"); this.counterName = counterName; } ///[To be supplied.] ////// public string CounterName { get { return counterName; } } ///[To be supplied.] ////// public ICollection Keys { get { return Dictionary.Keys; } } ///[To be supplied.] ////// public ICollection Values { get { return Dictionary.Values; } } ///[To be supplied.] ////// public InstanceData this[string instanceName] { get { if (instanceName == null) throw new ArgumentNullException("instanceName"); if (instanceName.Length == 0) instanceName = PerformanceCounterLib.SingleInstanceName; object objectName = instanceName.ToLower(CultureInfo.InvariantCulture); return (InstanceData) Dictionary[objectName]; } } internal void Add(string instanceName, InstanceData value) { object objectName = instanceName.ToLower(CultureInfo.InvariantCulture); Dictionary.Add(objectName, value); } ///[To be supplied.] ////// public bool Contains(string instanceName) { if (instanceName == null) throw new ArgumentNullException("instanceName"); object objectName = instanceName.ToLower(CultureInfo.InvariantCulture); return Dictionary.Contains(objectName); } ///[To be supplied.] ////// public void CopyTo(InstanceData[] instances, int index) { Dictionary.Values.CopyTo((Array)instances, 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
- VisualProxy.cs
- storepermission.cs
- WindowsGraphicsWrapper.cs
- PageRanges.cs
- ObjectToIdCache.cs
- DeclarationUpdate.cs
- WebPartsPersonalization.cs
- SmtpException.cs
- PropertyChangedEventArgs.cs
- AmbiguousMatchException.cs
- UIElement3DAutomationPeer.cs
- WindowsAltTab.cs
- PeerNearMe.cs
- DataSourceSelectArguments.cs
- EdmItemCollection.cs
- WebPartCatalogCloseVerb.cs
- EmptyEnumerator.cs
- CopyNamespacesAction.cs
- ResourceKey.cs
- TdsValueSetter.cs
- HtmlEmptyTagControlBuilder.cs
- CookieParameter.cs
- ObjectListFieldCollection.cs
- _TimerThread.cs
- Ref.cs
- VisualBrush.cs
- BadImageFormatException.cs
- DecoderReplacementFallback.cs
- Context.cs
- FlowchartDesigner.Helpers.cs
- TextServicesLoader.cs
- SmtpNegotiateAuthenticationModule.cs
- ProcessingInstructionAction.cs
- ViewStateException.cs
- SystemIcons.cs
- WebInvokeAttribute.cs
- ConfigXmlElement.cs
- MD5Cng.cs
- DataGridRowHeader.cs
- _HeaderInfo.cs
- CommandPlan.cs
- embossbitmapeffect.cs
- DataObjectMethodAttribute.cs
- TreeChangeInfo.cs
- ByteStack.cs
- DataGridViewButtonCell.cs
- ExceptQueryOperator.cs
- XmlChildNodes.cs
- SessionStateContainer.cs
- SmiContextFactory.cs
- Literal.cs
- SoapExtension.cs
- EdmComplexPropertyAttribute.cs
- BasicKeyConstraint.cs
- Columns.cs
- ValuePattern.cs
- SemanticBasicElement.cs
- dtdvalidator.cs
- StatusBar.cs
- TableRow.cs
- SchemaCreator.cs
- TextEditorTyping.cs
- BitmapCache.cs
- AssemblyBuilder.cs
- PostBackOptions.cs
- VirtualPathUtility.cs
- ClientRuntimeConfig.cs
- PrintPreviewGraphics.cs
- SuppressIldasmAttribute.cs
- TypeConstant.cs
- UInt64.cs
- DebugHandleTracker.cs
- ImageListImage.cs
- TrackingStringDictionary.cs
- CollectionBuilder.cs
- NodeInfo.cs
- RightsManagementUser.cs
- ErrorEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- XmlElementAttribute.cs
- PublisherIdentityPermission.cs
- QilLoop.cs
- AsmxEndpointPickerExtension.cs
- FaultDesigner.cs
- GZipStream.cs
- TextWriterTraceListener.cs
- TransportBindingElement.cs
- XmlEncoding.cs
- DependencyProperty.cs
- SplitterPanel.cs
- CheckPair.cs
- _IPv6Address.cs
- MultilineStringConverter.cs
- XmlSchemaExporter.cs
- WCFServiceClientProxyGenerator.cs
- OracleCommand.cs
- EnumUnknown.cs
- compensatingcollection.cs
- GifBitmapDecoder.cs
- TextWriter.cs