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
- GPStream.cs
- EntityDataSourceDesigner.cs
- IssuanceTokenProviderBase.cs
- Compiler.cs
- AggregatePushdown.cs
- IPEndPoint.cs
- SQLGuidStorage.cs
- ParameterRetriever.cs
- SecurityToken.cs
- ToolStripSeparator.cs
- TextTrailingWordEllipsis.cs
- PartialList.cs
- Calendar.cs
- AnonymousIdentificationModule.cs
- ChooseAction.cs
- WebSysDefaultValueAttribute.cs
- LocatorManager.cs
- NativeWindow.cs
- InheritanceContextHelper.cs
- MimeMultiPart.cs
- IncrementalCompileAnalyzer.cs
- SoapIncludeAttribute.cs
- SqlAliaser.cs
- X509ClientCertificateAuthentication.cs
- ValidationResult.cs
- CalendarAutoFormatDialog.cs
- Misc.cs
- AuthenticationModulesSection.cs
- DateTimeConverter2.cs
- CodeAttributeArgumentCollection.cs
- ImageListUtils.cs
- SqlDataReaderSmi.cs
- BuilderInfo.cs
- DeviceContexts.cs
- LongCountAggregationOperator.cs
- MailAddress.cs
- DataSourceViewSchemaConverter.cs
- StateDesignerConnector.cs
- CompoundFileStreamReference.cs
- HttpRuntimeSection.cs
- PolyLineSegment.cs
- MediaPlayer.cs
- ReadOnlyDictionary.cs
- AuditLevel.cs
- LineServicesRun.cs
- MemoryResponseElement.cs
- FontStretch.cs
- WindowsGrip.cs
- TransformerConfigurationWizardBase.cs
- SocketStream.cs
- QueryConverter.cs
- String.cs
- ThumbAutomationPeer.cs
- StatusBarItem.cs
- ResXDataNode.cs
- DictionarySectionHandler.cs
- AutoResetEvent.cs
- CatalogZoneBase.cs
- PageEventArgs.cs
- StartUpEventArgs.cs
- ContentDesigner.cs
- ControlParameter.cs
- NullExtension.cs
- ObjectDataSource.cs
- GeneralTransform3D.cs
- DrawingState.cs
- MLangCodePageEncoding.cs
- CollectionViewProxy.cs
- WebPartConnection.cs
- XpsLiterals.cs
- XmlReaderDelegator.cs
- CacheChildrenQuery.cs
- X509Chain.cs
- MemberPath.cs
- typedescriptorpermission.cs
- StringKeyFrameCollection.cs
- HttpRequestWrapper.cs
- EntityException.cs
- MarkupExtensionParser.cs
- DataObjectCopyingEventArgs.cs
- XmlElementAttributes.cs
- StringUtil.cs
- SystemIPAddressInformation.cs
- ColumnMapProcessor.cs
- MetadataArtifactLoaderResource.cs
- UTF7Encoding.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ToolStripRenderEventArgs.cs
- Grid.cs
- URI.cs
- RequestCachingSection.cs
- RepeaterDesigner.cs
- CodeValidator.cs
- DiscardableAttribute.cs
- HttpHandler.cs
- ToolStripDropDownClosedEventArgs.cs
- WpfPayload.cs
- ImageFormatConverter.cs
- SQLMembershipProvider.cs
- Section.cs