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
- SystemNetHelpers.cs
- DiagnosticTrace.cs
- ZipIOLocalFileHeader.cs
- Exception.cs
- StrokeCollectionDefaultValueFactory.cs
- SortQueryOperator.cs
- DbMetaDataFactory.cs
- CustomLineCap.cs
- ADConnectionHelper.cs
- TypeReference.cs
- WebGetAttribute.cs
- FontTypeConverter.cs
- odbcmetadatafactory.cs
- ModifiableIteratorCollection.cs
- PathFigure.cs
- PropertyToken.cs
- TaskbarItemInfo.cs
- CodeIdentifiers.cs
- UnsafeNativeMethods.cs
- PrimitiveOperationFormatter.cs
- SapiAttributeParser.cs
- SQLString.cs
- DbConnectionHelper.cs
- XmlSerializationGeneratedCode.cs
- AuthenticationModulesSection.cs
- Localizer.cs
- ELinqQueryState.cs
- MultiView.cs
- MatrixTransform.cs
- PersonalizationStateInfoCollection.cs
- NamespaceInfo.cs
- DynamicILGenerator.cs
- TCEAdapterGenerator.cs
- SimpleType.cs
- ImpersonateTokenRef.cs
- EditorZone.cs
- DebugViewWriter.cs
- PixelFormats.cs
- BinHexDecoder.cs
- ValidationRuleCollection.cs
- LicenseProviderAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- LocatorManager.cs
- XmlWriterSettings.cs
- NamedPipeProcessProtocolHandler.cs
- BindingWorker.cs
- DeviceContext.cs
- MailSettingsSection.cs
- ToolStripItemEventArgs.cs
- DeploymentExceptionMapper.cs
- SqlMultiplexer.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- BitmapEffectDrawing.cs
- TouchDevice.cs
- CanonicalFormWriter.cs
- ApplicationContext.cs
- DynamicArgumentDesigner.xaml.cs
- OrderedHashRepartitionEnumerator.cs
- QuestionEventArgs.cs
- TripleDES.cs
- HttpCacheVaryByContentEncodings.cs
- EntityProviderServices.cs
- SQLMoney.cs
- HasActivatableWorkflowEvent.cs
- ClientBuildManagerCallback.cs
- _NetRes.cs
- WindowsToolbar.cs
- Operand.cs
- XamlClipboardData.cs
- SslStreamSecurityElement.cs
- SystemEvents.cs
- KeyboardDevice.cs
- RsaSecurityTokenAuthenticator.cs
- TransformerConfigurationWizardBase.cs
- HttpApplicationFactory.cs
- JpegBitmapDecoder.cs
- ToolBarOverflowPanel.cs
- Matrix.cs
- SQLBinaryStorage.cs
- RoleExceptions.cs
- ColorConvertedBitmap.cs
- Stack.cs
- CharEnumerator.cs
- HotSpotCollection.cs
- SetIterators.cs
- OptimalBreakSession.cs
- InternalConfigEventArgs.cs
- SHA256Managed.cs
- DefinitionBase.cs
- CultureTable.cs
- ResourceManager.cs
- ConsumerConnectionPointCollection.cs
- ScrollData.cs
- RegexInterpreter.cs
- EntityTypeBase.cs
- InkPresenterAutomationPeer.cs
- SettingsAttributes.cs
- WindowsFormsHelpers.cs
- CodeObjectCreateExpression.cs
- ToolboxBitmapAttribute.cs