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
- UInt32Storage.cs
- PropertyInfoSet.cs
- BlockUIContainer.cs
- TextBox.cs
- httpstaticobjectscollection.cs
- SubMenuStyle.cs
- TransformedBitmap.cs
- Flowchart.cs
- JapaneseLunisolarCalendar.cs
- WSSecurityXXX2005.cs
- UIElementCollection.cs
- HostSecurityManager.cs
- messageonlyhwndwrapper.cs
- ConfigurationManagerHelper.cs
- MutexSecurity.cs
- DescriptionAttribute.cs
- SqlServer2KCompatibilityAnnotation.cs
- DurableOperationContext.cs
- DocumentViewerAutomationPeer.cs
- QueryStringParameter.cs
- IconConverter.cs
- HashSetEqualityComparer.cs
- PropertyDescriptorComparer.cs
- SmtpException.cs
- File.cs
- MetaData.cs
- TaiwanCalendar.cs
- HMACRIPEMD160.cs
- XmlDocumentSerializer.cs
- TypeDescriptor.cs
- DoubleUtil.cs
- PublisherMembershipCondition.cs
- ObfuscateAssemblyAttribute.cs
- SmiEventSink_Default.cs
- DefaultExpressionVisitor.cs
- GridViewCellAutomationPeer.cs
- ReferenceSchema.cs
- XComponentModel.cs
- Converter.cs
- Grammar.cs
- BindingCompleteEventArgs.cs
- TailCallAnalyzer.cs
- XmlException.cs
- PolyQuadraticBezierSegment.cs
- ConfigurationSettings.cs
- HtmlTableRow.cs
- TypeElement.cs
- DataViewSettingCollection.cs
- ZoneIdentityPermission.cs
- SiblingIterators.cs
- AsyncSerializedWorker.cs
- ValidationHelpers.cs
- TextEditorLists.cs
- AuthStoreRoleProvider.cs
- DayRenderEvent.cs
- DeleteCardRequest.cs
- EncoderParameter.cs
- LookupNode.cs
- ClientApiGenerator.cs
- CngProperty.cs
- SoapConverter.cs
- CustomAssemblyResolver.cs
- ApplicationDirectory.cs
- COAUTHINFO.cs
- LazyTextWriterCreator.cs
- RenamedEventArgs.cs
- DesignOnlyAttribute.cs
- ElapsedEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- IntAverageAggregationOperator.cs
- Renderer.cs
- UmAlQuraCalendar.cs
- PolicyStatement.cs
- SafeFileHandle.cs
- EmptyControlCollection.cs
- DbFunctionCommandTree.cs
- InputBinding.cs
- HScrollBar.cs
- TabletCollection.cs
- IndependentAnimationStorage.cs
- GenericTypeParameterBuilder.cs
- DockPanel.cs
- KeyFrames.cs
- CodeDomSerializationProvider.cs
- CodeGeneratorOptions.cs
- CodeTypeConstructor.cs
- NativeMethods.cs
- XPathAncestorQuery.cs
- HuffmanTree.cs
- DecimalStorage.cs
- Empty.cs
- MailHeaderInfo.cs
- UrlPropertyAttribute.cs
- TargetParameterCountException.cs
- ToolStripContentPanelRenderEventArgs.cs
- ObjectTokenCategory.cs
- ValidatorCompatibilityHelper.cs
- PersonalizableAttribute.cs
- WindowsTitleBar.cs
- ListViewDataItem.cs