Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SuppressMessageAttribute.cs
- IQueryable.cs
- DataGridViewColumnCollectionDialog.cs
- TextHidden.cs
- MissingFieldException.cs
- DirtyTextRange.cs
- EventRoute.cs
- SelectionEditingBehavior.cs
- SecureStringHasher.cs
- ValidatingReaderNodeData.cs
- FaultDesigner.cs
- Track.cs
- HandledEventArgs.cs
- RawTextInputReport.cs
- SiteMapNode.cs
- RemotingException.cs
- PlaceHolder.cs
- hebrewshape.cs
- HttpHandlersSection.cs
- SpellerInterop.cs
- MeshGeometry3D.cs
- ZipFileInfoCollection.cs
- OdbcEnvironmentHandle.cs
- PublishLicense.cs
- MachineKeyConverter.cs
- TdsParser.cs
- TextTrailingCharacterEllipsis.cs
- StructuredTypeEmitter.cs
- ProjectionPruner.cs
- WindowsProgressbar.cs
- DynamicMetaObject.cs
- WebConvert.cs
- ContractHandle.cs
- TreeNodeBindingDepthConverter.cs
- TagPrefixInfo.cs
- KeyInterop.cs
- DataSet.cs
- GeometryCollection.cs
- CompModSwitches.cs
- CommandManager.cs
- CultureMapper.cs
- DragStartedEventArgs.cs
- PropertyChangeTracker.cs
- HttpUnhandledOperationInvoker.cs
- EncoderBestFitFallback.cs
- ValidatingPropertiesEventArgs.cs
- LabelInfo.cs
- SerialErrors.cs
- MarginCollapsingState.cs
- CompiledRegexRunnerFactory.cs
- IIS7UserPrincipal.cs
- AlphabeticalEnumConverter.cs
- OuterGlowBitmapEffect.cs
- TypeSource.cs
- DocumentXmlWriter.cs
- X509WindowsSecurityToken.cs
- ProcessModelSection.cs
- SourceFileBuildProvider.cs
- DataGridCell.cs
- Serializer.cs
- SectionUpdates.cs
- ValueSerializer.cs
- WaitHandleCannotBeOpenedException.cs
- AppDomainFactory.cs
- TrustManagerMoreInformation.cs
- AutomationPropertyInfo.cs
- BaseCAMarshaler.cs
- DoubleLink.cs
- MenuStrip.cs
- LexicalChunk.cs
- WebPartEditorCancelVerb.cs
- HttpHeaderCollection.cs
- FactoryId.cs
- SQLStringStorage.cs
- uribuilder.cs
- BooleanExpr.cs
- XmlConvert.cs
- SharedStatics.cs
- TextTreeExtractElementUndoUnit.cs
- PageSetupDialog.cs
- PrintPreviewGraphics.cs
- TransformedBitmap.cs
- VersionUtil.cs
- COM2PropertyBuilderUITypeEditor.cs
- ObjectDataSourceSelectingEventArgs.cs
- PropertyGeneratedEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- TrackingStringDictionary.cs
- BinaryWriter.cs
- HierarchicalDataBoundControl.cs
- CachedTypeface.cs
- Socket.cs
- KnownTypesHelper.cs
- DataGridRowAutomationPeer.cs
- ObjectDataSourceStatusEventArgs.cs
- HostProtectionPermission.cs
- HScrollProperties.cs
- cookiecontainer.cs
- LineGeometry.cs
- Calendar.cs