Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / InstanceDataCollection.cs / 1305376 / 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
- PresentationAppDomainManager.cs
- Blend.cs
- ResourcesBuildProvider.cs
- EncoderBestFitFallback.cs
- TemplateKeyConverter.cs
- Wildcard.cs
- SourceFilter.cs
- FixedFlowMap.cs
- ReverseComparer.cs
- UpdateDelegates.Generated.cs
- WindowsListViewItemCheckBox.cs
- NavigationProperty.cs
- FontUnitConverter.cs
- GridItemPattern.cs
- Operator.cs
- DataRelation.cs
- BufferModeSettings.cs
- ListBindingHelper.cs
- XhtmlTextWriter.cs
- DPTypeDescriptorContext.cs
- ClientRoleProvider.cs
- URLMembershipCondition.cs
- DataGridTableCollection.cs
- CellNormalizer.cs
- CachedTypeface.cs
- MexTcpBindingCollectionElement.cs
- WebPartDisplayModeEventArgs.cs
- EncodingTable.cs
- CodeSnippetCompileUnit.cs
- Attributes.cs
- Int64AnimationBase.cs
- AvtEvent.cs
- SelectedDatesCollection.cs
- RegexCompilationInfo.cs
- SettingsAttributes.cs
- ParseElementCollection.cs
- RegistrySecurity.cs
- DataGridViewTextBoxColumn.cs
- ToolStripProgressBar.cs
- TemplateControl.cs
- DataBindingCollection.cs
- WebInvokeAttribute.cs
- Int32AnimationBase.cs
- SpeakInfo.cs
- DataGridViewColumnStateChangedEventArgs.cs
- StateManagedCollection.cs
- ContextActivityUtils.cs
- DesignerTransactionCloseEvent.cs
- ArrayConverter.cs
- ExpressionBuilderContext.cs
- FillBehavior.cs
- LoginView.cs
- ColorPalette.cs
- DataViewSetting.cs
- EdmProviderManifest.cs
- AssemblyAssociatedContentFileAttribute.cs
- RelationshipDetailsCollection.cs
- BamlMapTable.cs
- _TLSstream.cs
- PathFigure.cs
- Keyboard.cs
- Operators.cs
- ColumnHeaderConverter.cs
- BaseDataListPage.cs
- DropShadowBitmapEffect.cs
- ZoneIdentityPermission.cs
- KeyValuePairs.cs
- BasicSecurityProfileVersion.cs
- ConfigurationConverterBase.cs
- BaseUriHelper.cs
- DynamicQueryableWrapper.cs
- WeakReferenceEnumerator.cs
- cache.cs
- NativeMethods.cs
- Array.cs
- SchemaNotation.cs
- ArrayConverter.cs
- PropertyDescriptorComparer.cs
- RenderTargetBitmap.cs
- VectorAnimation.cs
- TreeViewBindingsEditor.cs
- ViewGenResults.cs
- SimpleExpression.cs
- SafeIUnknown.cs
- MoveSizeWinEventHandler.cs
- ViewStateModeByIdAttribute.cs
- MeshGeometry3D.cs
- ContextMenu.cs
- RouteParser.cs
- IdentityHolder.cs
- PersistenceMetadataNamespace.cs
- ValueTypeFixupInfo.cs
- WindowsGraphicsCacheManager.cs
- ColumnHeader.cs
- HatchBrush.cs
- ImageButton.cs
- DifferencingCollection.cs
- Hashtable.cs
- COM2ComponentEditor.cs
- ConfigXmlElement.cs