Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / CounterCreationData.cs / 1305376 / 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; } } } } // 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
- AssertFilter.cs
- XsltCompileContext.cs
- RoutedEventArgs.cs
- MonthCalendarDesigner.cs
- AssemblyName.cs
- GroupBoxAutomationPeer.cs
- Panel.cs
- PasswordDeriveBytes.cs
- ConnectionStringSettings.cs
- RequestNavigateEventArgs.cs
- ProtectedConfigurationProviderCollection.cs
- DeclaredTypeValidatorAttribute.cs
- ToolStripSystemRenderer.cs
- ShadowGlyph.cs
- InlinedAggregationOperatorEnumerator.cs
- TabletDevice.cs
- ConditionCollection.cs
- ValidationErrorCollection.cs
- SqlUtils.cs
- OdbcRowUpdatingEvent.cs
- CodeLabeledStatement.cs
- ISFClipboardData.cs
- RuleSettingsCollection.cs
- _IPv4Address.cs
- StructuredTypeEmitter.cs
- PingOptions.cs
- DashStyles.cs
- PropertyKey.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ToolStripManager.cs
- LayoutTableCell.cs
- EmptyQuery.cs
- DeviceContext2.cs
- DiscoveryClientProtocol.cs
- Clause.cs
- _SafeNetHandles.cs
- DataGridViewCellStyle.cs
- LinqDataSourceEditData.cs
- IndexedString.cs
- DeclarationUpdate.cs
- SrgsNameValueTag.cs
- PathNode.cs
- AttributeAction.cs
- AdornerDecorator.cs
- ConstraintStruct.cs
- DataList.cs
- InternalConfigConfigurationFactory.cs
- PolyBezierSegmentFigureLogic.cs
- XmlValidatingReaderImpl.cs
- DataGridViewLinkColumn.cs
- RadioButtonPopupAdapter.cs
- EntitySetRetriever.cs
- ObjectResult.cs
- Serializer.cs
- LocatorGroup.cs
- DoubleCollection.cs
- Unit.cs
- TextAutomationPeer.cs
- TemplateFactory.cs
- FilterQueryOptionExpression.cs
- XmlCharCheckingWriter.cs
- SmtpAuthenticationManager.cs
- ArgIterator.cs
- ClientApiGenerator.cs
- TimeIntervalCollection.cs
- Zone.cs
- WebConfigurationHost.cs
- XslNumber.cs
- SqlRowUpdatedEvent.cs
- DeviceFiltersSection.cs
- KeyNotFoundException.cs
- BindingMAnagerBase.cs
- AssemblyNameProxy.cs
- SafeNativeMethodsMilCoreApi.cs
- DbMetaDataFactory.cs
- DiagnosticEventProvider.cs
- Activator.cs
- WindowsGraphicsCacheManager.cs
- X509Utils.cs
- DependencyProperty.cs
- CharAnimationUsingKeyFrames.cs
- Model3D.cs
- ServiceHostingEnvironment.cs
- CircleHotSpot.cs
- Request.cs
- StateManager.cs
- SoapTypeAttribute.cs
- Command.cs
- PrinterSettings.cs
- PocoPropertyAccessorStrategy.cs
- ApplicationContext.cs
- PagedControl.cs
- TriggerActionCollection.cs
- Vector3DCollection.cs
- ListItemCollection.cs
- PinnedBufferMemoryStream.cs
- Cursors.cs
- MetadataException.cs
- Brush.cs
- AdornerPresentationContext.cs