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
- HttpCookie.cs
- ErrorTolerantObjectWriter.cs
- GridItemPattern.cs
- LexicalChunk.cs
- ReadOnlyDictionary.cs
- VirtualDirectoryMappingCollection.cs
- LinqDataSourceView.cs
- ExpandSegment.cs
- BevelBitmapEffect.cs
- Object.cs
- OutputCacheModule.cs
- Parameter.cs
- PenContext.cs
- TemplateControlCodeDomTreeGenerator.cs
- DbSourceParameterCollection.cs
- Main.cs
- WebPartExportVerb.cs
- CompareInfo.cs
- MenuItemAutomationPeer.cs
- CatalogPart.cs
- DataSourceGeneratorException.cs
- HtmlMobileTextWriter.cs
- mediapermission.cs
- FixedSOMPageConstructor.cs
- propertytag.cs
- PaperSize.cs
- Source.cs
- DataError.cs
- VerificationAttribute.cs
- IsolatedStorageException.cs
- MobileListItem.cs
- TreeNodeSelectionProcessor.cs
- FactoryGenerator.cs
- OperationCanceledException.cs
- DecoderReplacementFallback.cs
- CompatibleComparer.cs
- LoginName.cs
- UserNamePasswordServiceCredential.cs
- TemplateControlParser.cs
- _IPv4Address.cs
- Comparer.cs
- SqlDataSourceRefreshSchemaForm.cs
- HwndTarget.cs
- NotifyParentPropertyAttribute.cs
- RuntimeArgumentHandle.cs
- MetadataUtil.cs
- x509store.cs
- ToolStripPanelSelectionGlyph.cs
- ConcurrentQueue.cs
- ScriptMethodAttribute.cs
- LogicalExpressionEditor.cs
- BmpBitmapEncoder.cs
- AsymmetricKeyExchangeDeformatter.cs
- CompositeControl.cs
- SeekStoryboard.cs
- BaseParagraph.cs
- RegionInfo.cs
- EditorAttribute.cs
- ConnectionStringEditor.cs
- HandlerBase.cs
- SubstitutionList.cs
- ElapsedEventArgs.cs
- SoapFormatterSinks.cs
- WinFormsComponentEditor.cs
- MetafileHeaderWmf.cs
- AuthenticationModuleElement.cs
- RepeatBehaviorConverter.cs
- Graph.cs
- LogStore.cs
- ToolStripManager.cs
- SafeNativeHandle.cs
- DataGridState.cs
- ComboBoxRenderer.cs
- DataObjectAttribute.cs
- EffectiveValueEntry.cs
- MenuItem.cs
- CqlBlock.cs
- SemanticAnalyzer.cs
- Link.cs
- PerformanceCounterCategory.cs
- WmlLiteralTextAdapter.cs
- SapiAttributeParser.cs
- ComboBox.cs
- FrugalList.cs
- Update.cs
- WebBaseEventKeyComparer.cs
- SqlParameter.cs
- StylusPlugInCollection.cs
- GenericTextProperties.cs
- PageHandlerFactory.cs
- TitleStyle.cs
- GeometryCombineModeValidation.cs
- NotificationContext.cs
- RequestFactory.cs
- EdgeModeValidation.cs
- ClientTarget.cs
- ManipulationDeltaEventArgs.cs
- Win32SafeHandles.cs
- GiveFeedbackEvent.cs
- OdbcUtils.cs