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
- Matrix3D.cs
- ControlBuilder.cs
- OleDbMetaDataFactory.cs
- SafeNativeMethods.cs
- BamlRecordReader.cs
- TextOptions.cs
- CollectionsUtil.cs
- HttpContext.cs
- X509CertificateValidator.cs
- CodeTypeDeclaration.cs
- ThreadInterruptedException.cs
- BamlRecordWriter.cs
- LineServicesRun.cs
- UniformGrid.cs
- QilParameter.cs
- PrintController.cs
- ISO2022Encoding.cs
- EventBindingService.cs
- AsymmetricSignatureDeformatter.cs
- ISAPIWorkerRequest.cs
- DescendantBaseQuery.cs
- MethodToken.cs
- Substitution.cs
- MetadataArtifactLoaderComposite.cs
- input.cs
- GradientBrush.cs
- ScriptReference.cs
- FastEncoderStatics.cs
- DynamicActivityProperty.cs
- GenerateTemporaryTargetAssembly.cs
- ListViewInsertedEventArgs.cs
- UserMapPath.cs
- SafeNativeMethods.cs
- SqlGenerator.cs
- StorageEntityContainerMapping.cs
- TransactionValidationBehavior.cs
- BinaryExpression.cs
- SQLInt16.cs
- ProxyAttribute.cs
- util.cs
- DataKey.cs
- QueryContinueDragEventArgs.cs
- QuaternionKeyFrameCollection.cs
- _LocalDataStoreMgr.cs
- AttributeCollection.cs
- codemethodreferenceexpression.cs
- ListChangedEventArgs.cs
- PartialClassGenerationTask.cs
- Config.cs
- PagerStyle.cs
- coordinator.cs
- ContextQuery.cs
- CodeSubDirectory.cs
- SessionPageStateSection.cs
- PersonalizationState.cs
- InkCollectionBehavior.cs
- QualificationDataAttribute.cs
- SqlCacheDependencyDatabaseCollection.cs
- __Error.cs
- WindowsListView.cs
- EventProviderBase.cs
- IndentedWriter.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- PointLight.cs
- UnsafeNativeMethods.cs
- BulletedListDesigner.cs
- SecurityTokenException.cs
- Variant.cs
- DataStreams.cs
- OdbcStatementHandle.cs
- DataControlButton.cs
- TextElementCollectionHelper.cs
- D3DImage.cs
- TreeNodeConverter.cs
- DbDataRecord.cs
- UrlMappingsSection.cs
- UncommonField.cs
- ChainOfResponsibility.cs
- WinEventTracker.cs
- PenLineJoinValidation.cs
- LicenseContext.cs
- PropertyRecord.cs
- DrawingGroup.cs
- ObjectMaterializedEventArgs.cs
- SerializerWriterEventHandlers.cs
- FontWeights.cs
- SrgsSemanticInterpretationTag.cs
- TrackingLocation.cs
- ForeignKeyConstraint.cs
- Simplifier.cs
- NameNode.cs
- SignedXml.cs
- Rfc2898DeriveBytes.cs
- XPathSingletonIterator.cs
- CodeStatementCollection.cs
- ProfileGroupSettings.cs
- PolyQuadraticBezierSegment.cs
- Console.cs
- IntPtr.cs
- RangeValueProviderWrapper.cs