Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ContextQuery.cs
- ScalarConstant.cs
- GcHandle.cs
- SynchronizationContext.cs
- IsolatedStorage.cs
- NavigationProperty.cs
- RequestUriProcessor.cs
- XmlTypeMapping.cs
- FramingEncoders.cs
- HttpRuntimeSection.cs
- BooleanConverter.cs
- AutomationPeer.cs
- GcSettings.cs
- XPathItem.cs
- Encoder.cs
- httpserverutility.cs
- CollectionViewGroupInternal.cs
- SiteMapNodeItem.cs
- LinkDescriptor.cs
- SafeRightsManagementHandle.cs
- ResourceCategoryAttribute.cs
- OracleParameterCollection.cs
- BinaryConverter.cs
- Operand.cs
- PreviousTrackingServiceAttribute.cs
- TextEditorCopyPaste.cs
- DataDocumentXPathNavigator.cs
- AssemblyAttributesGoHere.cs
- DataObjectMethodAttribute.cs
- TextBox.cs
- CombinedGeometry.cs
- CheckBox.cs
- validationstate.cs
- DataGridViewControlCollection.cs
- BigInt.cs
- XmlSerializationReader.cs
- MimeMapping.cs
- SafeEventLogWriteHandle.cs
- xml.cs
- SQLResource.cs
- SizeConverter.cs
- NotFiniteNumberException.cs
- UnsafeNativeMethods.cs
- counter.cs
- SoapSchemaExporter.cs
- WebUtil.cs
- ConvertersCollection.cs
- PointLightBase.cs
- PropertyManager.cs
- ObsoleteAttribute.cs
- IndexerHelper.cs
- MenuItemCollectionEditor.cs
- EncoderReplacementFallback.cs
- DesignerDataColumn.cs
- cryptoapiTransform.cs
- ZipIOCentralDirectoryFileHeader.cs
- DataGridItemEventArgs.cs
- RoleManagerEventArgs.cs
- HttpChannelListener.cs
- XmlMtomWriter.cs
- LayoutDump.cs
- FragmentQueryKB.cs
- HotSpotCollection.cs
- WrapperEqualityComparer.cs
- RequestCache.cs
- IteratorFilter.cs
- XmlMtomReader.cs
- PartialClassGenerationTask.cs
- OdbcEnvironment.cs
- EntitySqlQueryCacheEntry.cs
- DrawingBrush.cs
- CopyAction.cs
- DoubleLink.cs
- TypeContext.cs
- DrawTreeNodeEventArgs.cs
- TextShapeableCharacters.cs
- CookieParameter.cs
- AsymmetricAlgorithm.cs
- AxImporter.cs
- Vector3dCollection.cs
- ClonableStack.cs
- AttributeAction.cs
- DataExpression.cs
- SoapIgnoreAttribute.cs
- EraserBehavior.cs
- PrivilegeNotHeldException.cs
- Int64AnimationUsingKeyFrames.cs
- HostingEnvironmentSection.cs
- DesignerRegionMouseEventArgs.cs
- BitmapEffectGeneralTransform.cs
- ObjectReaderCompiler.cs
- Pair.cs
- DiscoveryOperationContextExtension.cs
- AuthenticationSection.cs
- DataRowView.cs
- ChannelDispatcherCollection.cs
- SmiEventStream.cs
- RegexGroup.cs
- TerminateWorkflow.cs
- UrlPropertyAttribute.cs