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
- StrokeRenderer.cs
- Speller.cs
- EntityDataSourceReferenceGroup.cs
- MatcherBuilder.cs
- SafeCoTaskMem.cs
- MessageQueueTransaction.cs
- FlowDocumentReader.cs
- HtmlHistory.cs
- COM2Enum.cs
- EastAsianLunisolarCalendar.cs
- TextTreeUndo.cs
- Int64Animation.cs
- ListArgumentProvider.cs
- ToolStripPanelSelectionGlyph.cs
- CopyOnWriteList.cs
- TreeIterator.cs
- IgnorePropertiesAttribute.cs
- PoisonMessageException.cs
- TextFormatter.cs
- AppSettingsExpressionBuilder.cs
- PrinterResolution.cs
- mediaeventshelper.cs
- XmlSchemaSubstitutionGroup.cs
- XomlCompilerError.cs
- FixedSOMElement.cs
- TextDecorationCollectionConverter.cs
- RangeValuePatternIdentifiers.cs
- CodeRemoveEventStatement.cs
- SHA256Managed.cs
- RelationshipDetailsRow.cs
- URLMembershipCondition.cs
- NotifyParentPropertyAttribute.cs
- HttpsChannelListener.cs
- GenericEnumConverter.cs
- _NetworkingPerfCounters.cs
- RegexBoyerMoore.cs
- SQLDateTime.cs
- ClientBuildManager.cs
- RangeValidator.cs
- SHA1.cs
- IndicCharClassifier.cs
- Group.cs
- TimeManager.cs
- ResXBuildProvider.cs
- LinqMaximalSubtreeNominator.cs
- SpAudioStreamWrapper.cs
- QueueProcessor.cs
- PassportAuthentication.cs
- RequiredAttributeAttribute.cs
- PropertyTabAttribute.cs
- WeakReferenceEnumerator.cs
- InputProcessorProfiles.cs
- ASCIIEncoding.cs
- QuaternionKeyFrameCollection.cs
- XmlElement.cs
- EncodedStreamFactory.cs
- ResourceCategoryAttribute.cs
- ScrollProviderWrapper.cs
- BreakRecordTable.cs
- TemplateXamlParser.cs
- PageBreakRecord.cs
- SafeHandles.cs
- ObjectStateEntry.cs
- DBDataPermission.cs
- DataGridCellClipboardEventArgs.cs
- Win32.cs
- CompositeScriptReference.cs
- ImageListStreamer.cs
- DataGridViewColumnCollection.cs
- Listbox.cs
- UserControlCodeDomTreeGenerator.cs
- HostingEnvironmentSection.cs
- TransactionFormatter.cs
- TextElementEnumerator.cs
- DataViewSetting.cs
- UseLicense.cs
- Line.cs
- TraceUtility.cs
- EventManager.cs
- MessageSmuggler.cs
- TemplateColumn.cs
- XmlCDATASection.cs
- DbBuffer.cs
- WebPartVerb.cs
- XmlReaderSettings.cs
- BinaryKeyIdentifierClause.cs
- CacheSection.cs
- ImplicitInputBrush.cs
- SyndicationSerializer.cs
- HiddenField.cs
- Trace.cs
- MetafileHeaderWmf.cs
- RequestQueryParser.cs
- TraceContextEventArgs.cs
- CompilationRelaxations.cs
- AsyncResult.cs
- ListViewGroupConverter.cs
- QueryExpr.cs
- DeclarativeCatalogPart.cs
- WsatTransactionFormatter.cs