Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / CounterCreationData.cs / 1305376 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WsdlInspector.cs
- PageCache.cs
- StateChangeEvent.cs
- ConvertTextFrag.cs
- GuidConverter.cs
- BuildProvider.cs
- HandlerFactoryWrapper.cs
- SafeNativeMethods.cs
- XamlNamespaceHelper.cs
- VisualProxy.cs
- HtmlMeta.cs
- ContourSegment.cs
- PageMediaSize.cs
- CompatibleComparer.cs
- ResourceExpressionBuilder.cs
- ConfigXmlCDataSection.cs
- SelectionItemProviderWrapper.cs
- TextTreeRootTextBlock.cs
- JpegBitmapEncoder.cs
- ExternalFile.cs
- FactoryGenerator.cs
- FormCollection.cs
- Stroke.cs
- WorkflowControlClient.cs
- XmlSchemaType.cs
- RuntimeTrackingProfile.cs
- GeneralTransformCollection.cs
- DataGridViewUtilities.cs
- RegisteredExpandoAttribute.cs
- LicenseContext.cs
- XsltContext.cs
- ObjectHandle.cs
- BuildTopDownAttribute.cs
- ChannelTracker.cs
- EventLogPermissionEntry.cs
- ToolStripOverflow.cs
- SystemColors.cs
- WebPartsSection.cs
- _CommandStream.cs
- PassportAuthenticationModule.cs
- ContainerSelectorBehavior.cs
- xml.cs
- ConvertEvent.cs
- Facet.cs
- Double.cs
- LayoutTableCell.cs
- XamlStream.cs
- WebScriptMetadataFormatter.cs
- Underline.cs
- HttpPostedFile.cs
- DBDataPermission.cs
- ArraySubsetEnumerator.cs
- CryptoHelper.cs
- ForceCopyBuildProvider.cs
- SafeNativeMethods.cs
- OdbcDataAdapter.cs
- PeerUnsafeNativeCryptMethods.cs
- ImageButton.cs
- KeyConverter.cs
- QfeChecker.cs
- PngBitmapEncoder.cs
- TextAction.cs
- CompositeActivityValidator.cs
- TraceContextEventArgs.cs
- ContextActivityUtils.cs
- UnmanagedMemoryStream.cs
- DbExpressionBuilder.cs
- TextParaClient.cs
- ToolStripItemGlyph.cs
- ScriptingWebServicesSectionGroup.cs
- WebPartTracker.cs
- TransactionalPackage.cs
- IntAverageAggregationOperator.cs
- ServiceProviders.cs
- HitTestResult.cs
- DocumentSignatureManager.cs
- Parameter.cs
- WSHttpSecurityElement.cs
- GenericWebPart.cs
- BuilderInfo.cs
- AnimationClockResource.cs
- BitmapEffect.cs
- Pens.cs
- Interlocked.cs
- EventLogEntryCollection.cs
- TileBrush.cs
- DataGridColumnCollection.cs
- String.cs
- MemberDescriptor.cs
- SafeProcessHandle.cs
- XmlDataDocument.cs
- MenuItem.cs
- AsyncSerializedWorker.cs
- ListContractAdapter.cs
- Speller.cs
- PartialArray.cs
- TemplatingOptionsDialog.cs
- MetadataWorkspace.cs
- HealthMonitoringSectionHelper.cs
- UserPreferenceChangedEventArgs.cs