Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / CounterCreationData.cs / 1 / CounterCreationData.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System.Diagnostics; using System; using System.ComponentModel; ////// A struct defining the counter type, name and help string for a custom counter. /// [ TypeConverter("System.Diagnostics.Design.CounterCreationDataConverter, " + AssemblyRef.SystemDesign), Serializable ] public class CounterCreationData { private PerformanceCounterType counterType = PerformanceCounterType.NumberOfItems32; private string counterName = String.Empty; private string counterHelp = String.Empty; ////// public CounterCreationData() { } ///[To be supplied.] ////// public CounterCreationData(string counterName, string counterHelp, PerformanceCounterType counterType) { CounterType = counterType; CounterName = counterName; CounterHelp = counterHelp; } ///[To be supplied.] ////// [ DefaultValue(PerformanceCounterType.NumberOfItems32), MonitoringDescription(SR.CounterType) ] public PerformanceCounterType CounterType { get { return counterType; } set { if (!Enum.IsDefined(typeof(PerformanceCounterType), value)) throw new InvalidEnumArgumentException("value", (int)value, typeof(PerformanceCounterType)); counterType = value; } } ///[To be supplied.] ////// [ DefaultValue(""), MonitoringDescription(SR.CounterName), TypeConverter("System.Diagnostics.Design.StringValueConverter, " + AssemblyRef.SystemDesign) ] public string CounterName { get { return counterName; } set { PerformanceCounterCategory.CheckValidCounter(value); counterName = value; } } ///[To be supplied.] ////// [ DefaultValue(""), MonitoringDescription(SR.CounterHelp) ] public string CounterHelp { get { return counterHelp; } set { PerformanceCounterCategory.CheckValidHelp(value); counterHelp = value; } } } }[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormatterServicesNoSerializableCheck.cs
- WindowsSlider.cs
- HttpModuleCollection.cs
- ChannelPoolSettingsElement.cs
- COM2Properties.cs
- ModelPerspective.cs
- MarshalByValueComponent.cs
- RuleAttributes.cs
- UserControlParser.cs
- dbenumerator.cs
- InputLanguage.cs
- DBConnectionString.cs
- ScrollChrome.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ParentQuery.cs
- X509Extension.cs
- ConnectionsZone.cs
- CacheEntry.cs
- OdbcCommandBuilder.cs
- Transform3DGroup.cs
- ChameleonKey.cs
- FilterQueryOptionExpression.cs
- Link.cs
- ParameterCollectionEditor.cs
- StaticSiteMapProvider.cs
- DataGridViewUtilities.cs
- ListBoxItemAutomationPeer.cs
- DataSourceProvider.cs
- KeyGestureConverter.cs
- TeredoHelper.cs
- QilPatternVisitor.cs
- RegexCompiler.cs
- SByteStorage.cs
- XNodeNavigator.cs
- DataContractSerializer.cs
- StreamAsIStream.cs
- SqlColumnizer.cs
- DocComment.cs
- _NativeSSPI.cs
- TextRangeEditTables.cs
- TextProperties.cs
- DefaultPrintController.cs
- Rect3DConverter.cs
- Rotation3DKeyFrameCollection.cs
- SqlTypesSchemaImporter.cs
- ExpandCollapseProviderWrapper.cs
- WebPartZoneAutoFormat.cs
- EndEvent.cs
- MarshalByValueComponent.cs
- GroupLabel.cs
- XmlSchemaValidationException.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DataObjectEventArgs.cs
- SecurityManager.cs
- WeakEventManager.cs
- ButtonFlatAdapter.cs
- StylusButtonCollection.cs
- TryExpression.cs
- TypeRestriction.cs
- ObjectListGeneralPage.cs
- WCFModelStrings.Designer.cs
- IDispatchConstantAttribute.cs
- CodeValidator.cs
- HttpSessionStateWrapper.cs
- EpmTargetTree.cs
- DTCTransactionManager.cs
- Misc.cs
- DataSourceXmlClassAttribute.cs
- ControlBuilder.cs
- StringKeyFrameCollection.cs
- MediaTimeline.cs
- HttpCapabilitiesSectionHandler.cs
- PropertyBuilder.cs
- SqlVisitor.cs
- ConfigsHelper.cs
- DataGridDetailsPresenterAutomationPeer.cs
- PropertyGridView.cs
- ReadOnlyAttribute.cs
- RenderingBiasValidation.cs
- Encoder.cs
- NextPreviousPagerField.cs
- UserControlParser.cs
- DirectoryInfo.cs
- ThemeableAttribute.cs
- MissingFieldException.cs
- HostingEnvironmentException.cs
- GeneratedContractType.cs
- MoveSizeWinEventHandler.cs
- FormView.cs
- SiteMapNodeCollection.cs
- Property.cs
- DescendantQuery.cs
- HideDisabledControlAdapter.cs
- SemanticBasicElement.cs
- CatalogPart.cs
- ConnectionString.cs
- WindowsPrincipal.cs
- PersonalizationState.cs
- KeyInfo.cs
- Serializer.cs