Code:
/ DotNET / DotNET / 8.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
- processwaithandle.cs
- TextSelection.cs
- HttpResponseInternalBase.cs
- TimeSpan.cs
- OciHandle.cs
- ThreadInterruptedException.cs
- Item.cs
- CodeExpressionRuleDeclaration.cs
- XPathExpr.cs
- HttpErrorTraceRecord.cs
- DataGridPagerStyle.cs
- SubpageParaClient.cs
- PropertyEntry.cs
- ParallelTimeline.cs
- ADRole.cs
- StylusCaptureWithinProperty.cs
- ArrayExtension.cs
- SeverityFilter.cs
- SingleKeyFrameCollection.cs
- CurrentChangedEventManager.cs
- _StreamFramer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlnsCompatibleWithAttribute.cs
- Util.cs
- NativeMethods.cs
- SoapCommonClasses.cs
- TabPage.cs
- HeaderCollection.cs
- ComponentCollection.cs
- TableItemPatternIdentifiers.cs
- Track.cs
- ContainerUIElement3D.cs
- ArraySortHelper.cs
- Lasso.cs
- CompositeFontParser.cs
- CodeCommentStatement.cs
- SecurityElement.cs
- PriorityItem.cs
- Property.cs
- EntityContainerRelationshipSet.cs
- StyleConverter.cs
- TitleStyle.cs
- LinqDataSourceView.cs
- SecurityDocument.cs
- BaseCollection.cs
- QilCloneVisitor.cs
- StorageEndPropertyMapping.cs
- HtmlMeta.cs
- DirectoryRedirect.cs
- DataRelationPropertyDescriptor.cs
- StorageSetMapping.cs
- RightsManagementEncryptedStream.cs
- DefaultAuthorizationContext.cs
- PathData.cs
- InkCanvasSelection.cs
- NativeMethods.cs
- TextServicesCompartmentEventSink.cs
- IUnknownConstantAttribute.cs
- GradientBrush.cs
- GeneratedContractType.cs
- streamingZipPartStream.cs
- SubqueryRules.cs
- VisualTreeUtils.cs
- OpCellTreeNode.cs
- UrlAuthorizationModule.cs
- FileIOPermission.cs
- XamlRtfConverter.cs
- IndexerNameAttribute.cs
- CodeVariableReferenceExpression.cs
- ClientConvert.cs
- Soap12ProtocolImporter.cs
- BitmapEffectDrawing.cs
- PackageStore.cs
- UndoEngine.cs
- JpegBitmapEncoder.cs
- ContainerVisual.cs
- ServiceOperationInfoTypeConverter.cs
- SmiRecordBuffer.cs
- Model3D.cs
- ExtractorMetadata.cs
- IERequestCache.cs
- AnnotationService.cs
- BaseCodePageEncoding.cs
- Paragraph.cs
- ProcessManager.cs
- TextParagraph.cs
- ImageMetadata.cs
- WebBaseEventKeyComparer.cs
- BypassElement.cs
- ContextInformation.cs
- HostingMessageProperty.cs
- ConsumerConnectionPoint.cs
- Win32MouseDevice.cs
- CookielessHelper.cs
- NamespaceDecl.cs
- WeakReferenceKey.cs
- TreeViewEvent.cs
- UIElementPropertyUndoUnit.cs
- HttpCachePolicy.cs
- JpegBitmapEncoder.cs