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
- OletxVolatileEnlistment.cs
- BreakSafeBase.cs
- FullTextLine.cs
- TextRangeBase.cs
- DataSetMappper.cs
- XmlRawWriterWrapper.cs
- HMACSHA384.cs
- CallId.cs
- LicenseContext.cs
- DynamicValidator.cs
- NavigationWindowAutomationPeer.cs
- StrokeNodeData.cs
- ContextBase.cs
- ProjectionQueryOptionExpression.cs
- MarginCollapsingState.cs
- IgnoreFileBuildProvider.cs
- FontNameEditor.cs
- OverlappedContext.cs
- ViewCellRelation.cs
- Lease.cs
- PersonalizationStateQuery.cs
- QilReplaceVisitor.cs
- CreateUserWizard.cs
- CheckPair.cs
- BaseTemplateBuildProvider.cs
- ProfessionalColors.cs
- MenuScrollingVisibilityConverter.cs
- XmlHierarchicalDataSourceView.cs
- FillRuleValidation.cs
- DocumentViewerBaseAutomationPeer.cs
- UserPrincipalNameElement.cs
- EventRouteFactory.cs
- ExpressionsCollectionEditor.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- GraphicsPathIterator.cs
- BuildManagerHost.cs
- GeneralTransformGroup.cs
- QueryExpression.cs
- EntityDataSourceSelectedEventArgs.cs
- TCPClient.cs
- ComponentDispatcher.cs
- XmlILStorageConverter.cs
- ListViewItem.cs
- CaseStatementSlot.cs
- XmlTextAttribute.cs
- FormsAuthenticationEventArgs.cs
- DynamicMetaObject.cs
- DateTimeConverter.cs
- DataGridViewUtilities.cs
- PersistChildrenAttribute.cs
- NodeCounter.cs
- FrameworkElementFactoryMarkupObject.cs
- webclient.cs
- ExecutionScope.cs
- XsdValidatingReader.cs
- EntityTypeEmitter.cs
- newitemfactory.cs
- TextViewBase.cs
- CommentGlyph.cs
- WizardStepBase.cs
- DeploymentSection.cs
- XsltException.cs
- GroupStyle.cs
- CodeTypeDelegate.cs
- ConfigurationManagerInternalFactory.cs
- Panel.cs
- BoundPropertyEntry.cs
- XsltContext.cs
- BridgeDataReader.cs
- TextEditorLists.cs
- SafeSystemMetrics.cs
- SqlUtil.cs
- InputScopeAttribute.cs
- CollectionChangedEventManager.cs
- AlternateView.cs
- StreamUpgradeInitiator.cs
- IPEndPointCollection.cs
- OleDbReferenceCollection.cs
- PixelFormats.cs
- StorageModelBuildProvider.cs
- ContainerParagraph.cs
- ColumnWidthChangingEvent.cs
- BinaryNegotiation.cs
- BasePropertyDescriptor.cs
- Exception.cs
- Substitution.cs
- DelegateSerializationHolder.cs
- LinqDataSourceDisposeEventArgs.cs
- SharedStatics.cs
- StructuredTypeEmitter.cs
- ServiceHostFactory.cs
- StateBag.cs
- FragmentQueryKB.cs
- DocumentApplicationJournalEntry.cs
- SqlBooleanizer.cs
- SecurityVersion.cs
- wmiprovider.cs
- X509Chain.cs
- DefaultTraceListener.cs
- Columns.cs