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
- TemplateAction.cs
- EntityDataReader.cs
- TextDecoration.cs
- FieldMetadata.cs
- FixedTextBuilder.cs
- ClientUtils.cs
- ToolboxItemFilterAttribute.cs
- NamespaceExpr.cs
- LocationInfo.cs
- Attributes.cs
- HtmlInputFile.cs
- ZipFileInfo.cs
- XhtmlBasicLiteralTextAdapter.cs
- SigningCredentials.cs
- VoiceInfo.cs
- StopStoryboard.cs
- SelectionManager.cs
- InvokeSchedule.cs
- AccessibleObject.cs
- DefaultTextStore.cs
- Interlocked.cs
- DataPointer.cs
- XmlNodeList.cs
- DataGridDetailsPresenterAutomationPeer.cs
- ADMembershipProvider.cs
- ParserContext.cs
- XmlNodeWriter.cs
- RequestFactory.cs
- ResourcePool.cs
- SvcMapFile.cs
- BoundPropertyEntry.cs
- NotificationContext.cs
- SqlXmlStorage.cs
- CanExecuteRoutedEventArgs.cs
- CollectionChangedEventManager.cs
- ScalarConstant.cs
- XmlHierarchyData.cs
- XmlObjectSerializerReadContext.cs
- StateInitializationDesigner.cs
- HoistedLocals.cs
- ErrorWrapper.cs
- StringToken.cs
- DiscreteKeyFrames.cs
- EntitySqlQueryCacheKey.cs
- GetWinFXPath.cs
- DataGridViewSelectedRowCollection.cs
- FlowDocumentScrollViewer.cs
- CacheVirtualItemsEvent.cs
- _SslStream.cs
- BrowsableAttribute.cs
- MessageRpc.cs
- AnimatedTypeHelpers.cs
- SerializationInfoEnumerator.cs
- PageCatalogPart.cs
- ISessionStateStore.cs
- WebPartConnectionsConnectVerb.cs
- ValueProviderWrapper.cs
- GridViewDeletedEventArgs.cs
- UTF32Encoding.cs
- ProtocolReflector.cs
- MaskedTextProvider.cs
- QualificationDataItem.cs
- GridLengthConverter.cs
- ValidatedControlConverter.cs
- ArgIterator.cs
- UriTemplateTableMatchCandidate.cs
- TimeSpanMinutesConverter.cs
- RuntimeWrappedException.cs
- DefaultValueConverter.cs
- Point3D.cs
- XmlSchemaAnyAttribute.cs
- TextEditorMouse.cs
- JsonReaderWriterFactory.cs
- DataMember.cs
- SocketAddress.cs
- RSAOAEPKeyExchangeFormatter.cs
- UxThemeWrapper.cs
- GenericPrincipal.cs
- CharAnimationUsingKeyFrames.cs
- UTF32Encoding.cs
- HttpPostedFile.cs
- bidPrivateBase.cs
- ObjectDataSourceMethodEditor.cs
- SchemaElement.cs
- MouseButtonEventArgs.cs
- IdnMapping.cs
- DBCommandBuilder.cs
- ControllableStoryboardAction.cs
- SqlRowUpdatingEvent.cs
- AnnotationResourceCollection.cs
- WebPartDisplayMode.cs
- HttpRuntimeSection.cs
- WindowsContainer.cs
- ObjectDataSourceView.cs
- TextTreeFixupNode.cs
- DescendantBaseQuery.cs
- StrokeCollection.cs
- StylusPointPropertyInfo.cs
- RefreshEventArgs.cs
- PropertyFilterAttribute.cs