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
- WindowsToolbarAsMenu.cs
- TypeUnloadedException.cs
- TiffBitmapDecoder.cs
- MemberAccessException.cs
- ListControlStringCollectionEditor.cs
- ByteStreamGeometryContext.cs
- Brush.cs
- AttachedAnnotationChangedEventArgs.cs
- ItemChangedEventArgs.cs
- AbstractSvcMapFileLoader.cs
- PropertyGridCommands.cs
- xml.cs
- TextCompositionManager.cs
- TypeConverter.cs
- SerializationSectionGroup.cs
- WebPartsPersonalizationAuthorization.cs
- ServerValidateEventArgs.cs
- ConfigViewGenerator.cs
- x509utils.cs
- EntryPointNotFoundException.cs
- TdsParserHelperClasses.cs
- TextEditorParagraphs.cs
- ConnectionConsumerAttribute.cs
- LongPath.cs
- CodeDomSerializerException.cs
- TemplatePagerField.cs
- TabletCollection.cs
- Point3DAnimationBase.cs
- NamespaceDecl.cs
- SrgsElementFactory.cs
- VisualProxy.cs
- EntityDataSourceMemberPath.cs
- HttpCapabilitiesSectionHandler.cs
- PointCollectionConverter.cs
- columnmapfactory.cs
- EntityDataSourceMemberPath.cs
- CriticalFinalizerObject.cs
- OciEnlistContext.cs
- TypeDescriptionProvider.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- GridViewItemAutomationPeer.cs
- TypeDelegator.cs
- ProcessHostServerConfig.cs
- SrgsDocumentParser.cs
- JsonFormatMapping.cs
- SecUtil.cs
- AssemblyInfo.cs
- HostingEnvironment.cs
- Base64Encoder.cs
- ChildChangedEventArgs.cs
- XmlPreloadedResolver.cs
- DocComment.cs
- TextFragmentEngine.cs
- App.cs
- AssemblyResourceLoader.cs
- ScalarOps.cs
- CodeMemberField.cs
- UnsafeMethods.cs
- XmlSchemaGroupRef.cs
- DependsOnAttribute.cs
- Vector3D.cs
- Camera.cs
- AndCondition.cs
- TimeEnumHelper.cs
- TableCell.cs
- WebServiceEnumData.cs
- HttpModule.cs
- TraceXPathNavigator.cs
- DecoderReplacementFallback.cs
- CryptoKeySecurity.cs
- BCLDebug.cs
- WebPartRestoreVerb.cs
- RequestBringIntoViewEventArgs.cs
- ComPlusTypeValidator.cs
- ServiceReference.cs
- DateTimeValueSerializerContext.cs
- SymbolType.cs
- SiteMapDataSource.cs
- ModelProperty.cs
- MetafileEditor.cs
- ConsumerConnectionPoint.cs
- MessageLogTraceRecord.cs
- InfoCardCryptoHelper.cs
- NativeCppClassAttribute.cs
- XsdDateTime.cs
- RepeaterItem.cs
- SizeAnimationClockResource.cs
- EtwTrace.cs
- HighlightOverlayGlyph.cs
- versioninfo.cs
- MenuItemBinding.cs
- EntityDataSourceReferenceGroup.cs
- XmlNavigatorStack.cs
- ContentControl.cs
- ControlPropertyNameConverter.cs
- ListParagraph.cs
- SaveCardRequest.cs
- TagPrefixCollection.cs
- AdRotatorDesigner.cs
- WindowsToolbarItemAsMenuItem.cs