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
- WindowsListViewItemCheckBox.cs
- GridViewItemAutomationPeer.cs
- SystemResourceHost.cs
- OleAutBinder.cs
- DragCompletedEventArgs.cs
- TextFormattingConverter.cs
- Wizard.cs
- XmlSchemaSubstitutionGroup.cs
- TextAnchor.cs
- MsmqHostedTransportConfiguration.cs
- ThemeConfigurationDialog.cs
- TemplateControlParser.cs
- ConnectionManager.cs
- FontClient.cs
- SecurityDocument.cs
- ConcurrentQueue.cs
- SQLChars.cs
- WebServiceBindingAttribute.cs
- Compiler.cs
- JournalNavigationScope.cs
- SingleConverter.cs
- Evidence.cs
- TransportConfigurationTypeElementCollection.cs
- CrossSiteScriptingValidation.cs
- MatrixCamera.cs
- InternalTransaction.cs
- SymmetricSecurityProtocolFactory.cs
- Mutex.cs
- TableCell.cs
- Metafile.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DelegateSerializationHolder.cs
- XmlIncludeAttribute.cs
- InfoCardKeyedHashAlgorithm.cs
- AsymmetricSignatureFormatter.cs
- QueryableDataSourceHelper.cs
- XmlTextReaderImpl.cs
- ServiceMetadataExtension.cs
- FragmentQueryKB.cs
- DataGridViewLayoutData.cs
- WorkflowStateRollbackService.cs
- HostingEnvironment.cs
- XmlUtilWriter.cs
- StateDesigner.Helpers.cs
- ThicknessKeyFrameCollection.cs
- ServiceDescriptionContext.cs
- WSDualHttpBinding.cs
- ViewGenerator.cs
- SoapIncludeAttribute.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ResourceDictionary.cs
- CheckedListBox.cs
- CodeIdentifiers.cs
- Mutex.cs
- DefaultWorkflowSchedulerService.cs
- OleDbWrapper.cs
- TransformDescriptor.cs
- MenuCommandsChangedEventArgs.cs
- TargetInvocationException.cs
- ContainsRowNumberChecker.cs
- Menu.cs
- Partitioner.cs
- ProxyAttribute.cs
- ArrayList.cs
- CodeIdentifiers.cs
- ArrayItemValue.cs
- ObjectDataSourceMethodEventArgs.cs
- ParameterElementCollection.cs
- ThousandthOfEmRealPoints.cs
- MultipleCopiesCollection.cs
- HttpSessionStateBase.cs
- DateTimeParse.cs
- PathTooLongException.cs
- Ticks.cs
- ConfigsHelper.cs
- DbCommandDefinition.cs
- LineServicesCallbacks.cs
- ipaddressinformationcollection.cs
- SourceElementsCollection.cs
- XmlSubtreeReader.cs
- QueryCacheKey.cs
- webeventbuffer.cs
- WebHeaderCollection.cs
- WebPartsPersonalization.cs
- EndpointAddressElementBase.cs
- X509Utils.cs
- LocalizableAttribute.cs
- Highlights.cs
- SqlWebEventProvider.cs
- XmlRawWriterWrapper.cs
- WaitForChangedResult.cs
- DesigntimeLicenseContext.cs
- AuthenticatedStream.cs
- OAVariantLib.cs
- ImplicitInputBrush.cs
- ZoneButton.cs
- KerberosReceiverSecurityToken.cs
- BCLDebug.cs
- StyleSelector.cs
- SiteMapNode.cs