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
- ColorConverter.cs
- TextElementEnumerator.cs
- CustomCredentialPolicy.cs
- StatusBarItemAutomationPeer.cs
- HostSecurityManager.cs
- UpdateEventArgs.cs
- OleDbStruct.cs
- SkinIDTypeConverter.cs
- Point3DValueSerializer.cs
- RegistryPermission.cs
- MD5.cs
- shaperfactoryquerycacheentry.cs
- CheckPair.cs
- MeshGeometry3D.cs
- XmlSchemaAnnotation.cs
- RuntimeConfig.cs
- SHA1Managed.cs
- InputScopeAttribute.cs
- HyperLink.cs
- MatrixTransform.cs
- GridViewUpdateEventArgs.cs
- ToolStripContainerActionList.cs
- TextServicesManager.cs
- SamlAudienceRestrictionCondition.cs
- ObsoleteAttribute.cs
- OpenTypeCommon.cs
- SafePipeHandle.cs
- ZipPackage.cs
- BlurEffect.cs
- TextDpi.cs
- KeyGestureValueSerializer.cs
- BufferModeSettings.cs
- PerformanceCounter.cs
- BitConverter.cs
- XmlSchemaType.cs
- SqlDataSourceStatusEventArgs.cs
- RoutedEvent.cs
- mactripleDES.cs
- ExeConfigurationFileMap.cs
- DynamicPropertyReader.cs
- ReferentialConstraint.cs
- CounterSample.cs
- BinaryParser.cs
- WizardPanel.cs
- LocalFileSettingsProvider.cs
- EnvironmentPermission.cs
- ServerReliableChannelBinder.cs
- OperandQuery.cs
- Keyboard.cs
- StateItem.cs
- SizeChangedInfo.cs
- Win32.cs
- NominalTypeEliminator.cs
- SerializerWriterEventHandlers.cs
- RuntimeEnvironment.cs
- DesignerForm.cs
- Code.cs
- WriteTimeStream.cs
- XmlSchemaGroupRef.cs
- Size.cs
- ContextMenuAutomationPeer.cs
- BoundField.cs
- DataGridViewRow.cs
- GridViewSortEventArgs.cs
- Debug.cs
- FactoryId.cs
- Vector3DValueSerializer.cs
- ListViewGroupConverter.cs
- SamlNameIdentifierClaimResource.cs
- InputGestureCollection.cs
- FileChangesMonitor.cs
- ByteStreamGeometryContext.cs
- NativeRightsManagementAPIsStructures.cs
- RestClientProxyHandler.cs
- IISMapPath.cs
- SecurityTokenInclusionMode.cs
- TextUtf8RawTextWriter.cs
- MetadataSource.cs
- QueryInterceptorAttribute.cs
- MouseCaptureWithinProperty.cs
- Html32TextWriter.cs
- PaginationProgressEventArgs.cs
- DecimalAnimationUsingKeyFrames.cs
- CqlBlock.cs
- InternalUserCancelledException.cs
- Translator.cs
- GiveFeedbackEventArgs.cs
- ParallelDesigner.cs
- RoleManagerSection.cs
- ColorAnimationUsingKeyFrames.cs
- HttpListenerException.cs
- Win32Exception.cs
- HierarchicalDataSourceIDConverter.cs
- AutomationIdentifierGuids.cs
- DiscoveryDocumentReference.cs
- SiteOfOriginContainer.cs
- CheckBoxRenderer.cs
- SchemaImporterExtensionElement.cs
- RegexCapture.cs
- ProxyGenerator.cs