Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChangesetResponse.cs
- BaseDataBoundControl.cs
- NumericUpDown.cs
- RijndaelManagedTransform.cs
- RegexMatch.cs
- WebRequestModuleElement.cs
- IResourceProvider.cs
- XPathNodePointer.cs
- WorkflowOwnershipException.cs
- XamlFigureLengthSerializer.cs
- ApplicationInterop.cs
- MenuItem.cs
- Misc.cs
- ToolboxDataAttribute.cs
- ReferenceConverter.cs
- RepeaterItem.cs
- ConstraintCollection.cs
- QueryResultOp.cs
- InternalConfigRoot.cs
- HwndMouseInputProvider.cs
- SchemaMapping.cs
- ActiveXHost.cs
- XAMLParseException.cs
- DataGridCell.cs
- GeneralTransform3DGroup.cs
- Stroke.cs
- VisualCollection.cs
- SafeEventLogReadHandle.cs
- HwndProxyElementProvider.cs
- PointF.cs
- ConnectionManagementSection.cs
- MediaPlayer.cs
- ToolStripStatusLabel.cs
- SmiEventSink.cs
- TrustSection.cs
- NavigateEvent.cs
- InkCanvasSelectionAdorner.cs
- Activator.cs
- ContainerControl.cs
- BitmapMetadataBlob.cs
- CompilerGlobalScopeAttribute.cs
- CodeExporter.cs
- RIPEMD160.cs
- CreateUserWizard.cs
- DataSourceControlBuilder.cs
- CaseExpr.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- StatusBarItemAutomationPeer.cs
- UserNameSecurityTokenProvider.cs
- LinkTarget.cs
- ForceCopyBuildProvider.cs
- ExpressionEditorAttribute.cs
- PrinterSettings.cs
- RuntimeEnvironment.cs
- TdsParserStateObject.cs
- XmlDocumentFragment.cs
- ItemList.cs
- UserControl.cs
- XmlDsigSep2000.cs
- Encoder.cs
- LogicalTreeHelper.cs
- CodeDomSerializerBase.cs
- InstanceDescriptor.cs
- LinearGradientBrush.cs
- DBDataPermission.cs
- DbDeleteCommandTree.cs
- WorkflowDebuggerSteppingAttribute.cs
- EventNotify.cs
- FixedFlowMap.cs
- PropertyDescriptorComparer.cs
- TextSerializer.cs
- IDispatchConstantAttribute.cs
- ResXResourceReader.cs
- ComboBox.cs
- CorrelationQuery.cs
- TransactionScope.cs
- CatalogPart.cs
- TypeElement.cs
- MetabaseServerConfig.cs
- DBBindings.cs
- ClientSettingsStore.cs
- _OSSOCK.cs
- TextSimpleMarkerProperties.cs
- BitmapFrameEncode.cs
- TreeNodeBinding.cs
- TypeSystem.cs
- GroupByQueryOperator.cs
- SqlDataSourceCommandEventArgs.cs
- MessageQueueConverter.cs
- SslStream.cs
- RecognizerBase.cs
- _SingleItemRequestCache.cs
- AncestorChangedEventArgs.cs
- Matrix3DStack.cs
- QilGeneratorEnv.cs
- RulePatternOps.cs
- SrgsSemanticInterpretationTag.cs
- XPathAxisIterator.cs
- figurelength.cs
- FontDifferentiator.cs