Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } } // 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
- shaper.cs
- MobileUserControlDesigner.cs
- sqlnorm.cs
- SessionState.cs
- PageFunction.cs
- LayoutTable.cs
- FileDetails.cs
- ExpressionEditorAttribute.cs
- ValueExpressions.cs
- TextChangedEventArgs.cs
- Header.cs
- TextOnlyOutput.cs
- EditBehavior.cs
- ColorAnimationUsingKeyFrames.cs
- Environment.cs
- FrameDimension.cs
- FeatureSupport.cs
- ErrorRuntimeConfig.cs
- TargetInvocationException.cs
- BamlResourceContent.cs
- WizardPanelChangingEventArgs.cs
- FlowPosition.cs
- XmlWriterSettings.cs
- DesignerAdapterAttribute.cs
- Expressions.cs
- CounterCreationData.cs
- ActivityExecutionFilter.cs
- DesignBindingValueUIHandler.cs
- OleCmdHelper.cs
- Positioning.cs
- TransformGroup.cs
- ListViewGroup.cs
- SaveWorkflowCommand.cs
- XmlKeywords.cs
- NotificationContext.cs
- SelectionItemProviderWrapper.cs
- ActivityUtilities.cs
- ViewCellSlot.cs
- EncoderFallback.cs
- ConsumerConnectionPoint.cs
- Deserializer.cs
- InfoCardCryptoHelper.cs
- RoamingStoreFileUtility.cs
- SelectionPatternIdentifiers.cs
- AnnotationAdorner.cs
- RepeatButton.cs
- DefaultHttpHandler.cs
- MatcherBuilder.cs
- MessageSecurityVersion.cs
- IISUnsafeMethods.cs
- ping.cs
- ContentHostHelper.cs
- XmlPreloadedResolver.cs
- IisTraceListener.cs
- ColorTransform.cs
- DBConnectionString.cs
- SystemResourceHost.cs
- XmlSchemaObjectTable.cs
- XmlDocumentSerializer.cs
- ToolboxDataAttribute.cs
- SqlMethods.cs
- DbConnectionPoolCounters.cs
- IPipelineRuntime.cs
- ZipIOExtraFieldElement.cs
- MarkupCompilePass1.cs
- MenuItemStyleCollection.cs
- _LazyAsyncResult.cs
- ContextBase.cs
- ScriptingProfileServiceSection.cs
- DataViewSettingCollection.cs
- OptimalTextSource.cs
- HtmlTableRowCollection.cs
- GenericParameterDataContract.cs
- XmlSchemaAny.cs
- NativeMethods.cs
- Model3D.cs
- unsafeIndexingFilterStream.cs
- ComplusTypeValidator.cs
- DesignerUtility.cs
- SplayTreeNode.cs
- MachineKeyConverter.cs
- XmlArrayAttribute.cs
- RC2.cs
- BindingCollection.cs
- WebPartRestoreVerb.cs
- HeaderCollection.cs
- PathFigureCollectionConverter.cs
- ModelTypeConverter.cs
- SpecularMaterial.cs
- EnvironmentPermission.cs
- SerialPinChanges.cs
- MsmqIntegrationProcessProtocolHandler.cs
- WarningException.cs
- GeometryModel3D.cs
- LoginCancelEventArgs.cs
- WorkflowPageSetupDialog.cs
- TypeConverterValueSerializer.cs
- Object.cs
- DesignBindingEditor.cs
- VisualStyleRenderer.cs