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
- FormViewInsertedEventArgs.cs
- Triplet.cs
- SecurityTokenSerializer.cs
- HyperLinkField.cs
- DrawItemEvent.cs
- BitmapEffectInputData.cs
- X509Extension.cs
- HwndHostAutomationPeer.cs
- XmlEnumAttribute.cs
- WsatServiceCertificate.cs
- ScrollBarAutomationPeer.cs
- EventPrivateKey.cs
- MediaScriptCommandRoutedEventArgs.cs
- DBCommandBuilder.cs
- NotifyParentPropertyAttribute.cs
- NativeMethods.cs
- DirectoryLocalQuery.cs
- IdentityHolder.cs
- NativeMethods.cs
- CustomValidator.cs
- TileBrush.cs
- HuffModule.cs
- QueryCacheManager.cs
- FacetDescription.cs
- ServiceDocumentFormatter.cs
- DataSourceExpression.cs
- MemberRelationshipService.cs
- XmlRawWriter.cs
- DelegatingConfigHost.cs
- TextEditorLists.cs
- OperationAbortedException.cs
- ObjectMaterializedEventArgs.cs
- SystemWebSectionGroup.cs
- MulticastOption.cs
- TextParentUndoUnit.cs
- WebSysDescriptionAttribute.cs
- HandlerFactoryCache.cs
- TextTabProperties.cs
- StringDictionaryCodeDomSerializer.cs
- RoleGroupCollectionEditor.cs
- TdsParser.cs
- XmlnsDictionary.cs
- CheckBoxField.cs
- HttpResponseInternalBase.cs
- IDReferencePropertyAttribute.cs
- CodeGotoStatement.cs
- ICspAsymmetricAlgorithm.cs
- ActivityExecutorSurrogate.cs
- HeaderLabel.cs
- ScaleTransform3D.cs
- PagePropertiesChangingEventArgs.cs
- TypeViewSchema.cs
- _HTTPDateParse.cs
- FileStream.cs
- PackageProperties.cs
- ManagementDateTime.cs
- StickyNote.cs
- ToolStripContentPanelRenderEventArgs.cs
- CreateUserWizardStep.cs
- SizeConverter.cs
- CodeSnippetStatement.cs
- PageHandlerFactory.cs
- BitmapEffectInput.cs
- WebBrowserNavigatingEventHandler.cs
- assertwrapper.cs
- codemethodreferenceexpression.cs
- StylusCaptureWithinProperty.cs
- DataExpression.cs
- CombinedGeometry.cs
- SchemaCreator.cs
- RequestCachePolicy.cs
- EventItfInfo.cs
- SkinBuilder.cs
- ListViewHitTestInfo.cs
- FormatterServices.cs
- XPathParser.cs
- LinearQuaternionKeyFrame.cs
- securitymgrsite.cs
- SqlCacheDependency.cs
- GridItemPatternIdentifiers.cs
- ApplicationServicesHostFactory.cs
- Imaging.cs
- ColumnCollection.cs
- DataSourceViewSchemaConverter.cs
- PageCache.cs
- ImplicitInputBrush.cs
- RecordConverter.cs
- ExceptionHandlersDesigner.cs
- XPathAncestorIterator.cs
- RtType.cs
- BCryptHashAlgorithm.cs
- DataServiceException.cs
- ListParaClient.cs
- SecureConversationServiceCredential.cs
- RequestCacheValidator.cs
- AdRotator.cs
- HandlerWithFactory.cs
- EntityModelSchemaGenerator.cs
- IpcClientManager.cs
- SemanticResolver.cs