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
- ModuleConfigurationInfo.cs
- ReachSerializationCacheItems.cs
- DrawingAttributesDefaultValueFactory.cs
- SqlServices.cs
- SqlTransaction.cs
- HttpContextServiceHost.cs
- CallInfo.cs
- ItemDragEvent.cs
- RecommendedAsConfigurableAttribute.cs
- StackSpiller.Temps.cs
- StrongName.cs
- ServiceDocumentFormatter.cs
- AllMembershipCondition.cs
- DocumentPageViewAutomationPeer.cs
- XPathQilFactory.cs
- ToolboxItemAttribute.cs
- SafeThemeHandle.cs
- ResourceProperty.cs
- ChameleonKey.cs
- DbParameterCollection.cs
- IdentityNotMappedException.cs
- ExpressionBuilderCollection.cs
- Timer.cs
- BaseCodeDomTreeGenerator.cs
- SortQuery.cs
- FileNotFoundException.cs
- WebResponse.cs
- DataGridLength.cs
- PersistenceContextEnlistment.cs
- Query.cs
- SelectionListDesigner.cs
- AspNetHostingPermission.cs
- EditorZoneBase.cs
- XmlException.cs
- Verify.cs
- ResourceSetExpression.cs
- WindowsProgressbar.cs
- BaseUriHelper.cs
- TrustManager.cs
- WebControlsSection.cs
- SignatureDescription.cs
- ServiceParser.cs
- WebEventCodes.cs
- ContainsRowNumberChecker.cs
- SslStream.cs
- ConsumerConnectionPointCollection.cs
- XmlSchemaExporter.cs
- InvalidProgramException.cs
- ExceptionHandlers.cs
- MappingModelBuildProvider.cs
- InvalidAsynchronousStateException.cs
- TimeSpanStorage.cs
- CurrentTimeZone.cs
- DataTableMappingCollection.cs
- SectionVisual.cs
- EventHandlerService.cs
- SystemIcons.cs
- SamlDelegatingWriter.cs
- CollectionBuilder.cs
- CSharpCodeProvider.cs
- XmlSchemaExternal.cs
- CodeChecksumPragma.cs
- smtppermission.cs
- XsltException.cs
- HtmlSelect.cs
- BitSet.cs
- PointHitTestResult.cs
- TerminateWorkflow.cs
- SecurityValidationBehavior.cs
- RepeaterItemCollection.cs
- ManagementClass.cs
- NetMsmqBindingElement.cs
- EntityDataSourceChangingEventArgs.cs
- HierarchicalDataBoundControlAdapter.cs
- SendMailErrorEventArgs.cs
- XmlNodeChangedEventArgs.cs
- ProfilePropertySettings.cs
- DataPagerFieldCollection.cs
- InputDevice.cs
- ContentValidator.cs
- storagemappingitemcollection.viewdictionary.cs
- DrawingVisual.cs
- DictionaryCustomTypeDescriptor.cs
- ProcessHostConfigUtils.cs
- InstanceKeyCompleteException.cs
- CompositeTypefaceMetrics.cs
- AuthenticationServiceManager.cs
- WebPartsSection.cs
- ScrollEventArgs.cs
- TextRangeEditTables.cs
- TransactionFormatter.cs
- RichTextBoxDesigner.cs
- DataColumnMapping.cs
- WindowsProgressbar.cs
- SymLanguageType.cs
- TimeIntervalCollection.cs
- EditorPartCollection.cs
- XMLUtil.cs
- DPAPIProtectedConfigurationProvider.cs
- DeploymentSection.cs