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
- PageAsyncTaskManager.cs
- DriveNotFoundException.cs
- HttpListenerRequest.cs
- Cursor.cs
- log.cs
- selecteditemcollection.cs
- XmlTextWriter.cs
- ExpandSegment.cs
- XPathScanner.cs
- HttpCookie.cs
- ControlType.cs
- FileLogRecord.cs
- LateBoundBitmapDecoder.cs
- AtomContentProperty.cs
- ScriptingProfileServiceSection.cs
- ComEventsSink.cs
- XPathDocument.cs
- DiscreteKeyFrames.cs
- XmlSignificantWhitespace.cs
- brushes.cs
- XmlReflectionMember.cs
- Queue.cs
- ObjectStateFormatter.cs
- Delegate.cs
- Camera.cs
- InputLanguageProfileNotifySink.cs
- IsolatedStoragePermission.cs
- FontConverter.cs
- CodeTypeParameterCollection.cs
- precedingquery.cs
- RelatedImageListAttribute.cs
- TextStore.cs
- WinFormsUtils.cs
- CallContext.cs
- DrawingContextDrawingContextWalker.cs
- WebBrowserProgressChangedEventHandler.cs
- PlatformCulture.cs
- SoapTypeAttribute.cs
- TextEndOfLine.cs
- PermissionListSet.cs
- Point.cs
- AssemblyGen.cs
- StylusPlugInCollection.cs
- PipelineDeploymentState.cs
- RegexCompiler.cs
- ImageCodecInfo.cs
- BlockExpression.cs
- MenuItemCollection.cs
- MaskInputRejectedEventArgs.cs
- EventProviderWriter.cs
- HotCommands.cs
- TextShapeableCharacters.cs
- MorphHelper.cs
- SqlVisitor.cs
- MonitoringDescriptionAttribute.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- QueryStringHandler.cs
- TrustSection.cs
- PrintingPermission.cs
- Activation.cs
- TextEncodedRawTextWriter.cs
- AppManager.cs
- CodeTypeReference.cs
- ConfigurationValidatorAttribute.cs
- WebDisplayNameAttribute.cs
- TimeSpanStorage.cs
- EncryptedKey.cs
- AsyncDataRequest.cs
- ReadOnlyDictionary.cs
- OleDbWrapper.cs
- RMEnrollmentPage1.cs
- DockingAttribute.cs
- SafeThemeHandle.cs
- ProfessionalColorTable.cs
- StringHandle.cs
- InputScopeNameConverter.cs
- EventWaitHandle.cs
- ContextMenuService.cs
- CreateParams.cs
- TrackingProfileDeserializationException.cs
- WebColorConverter.cs
- SoapReflectionImporter.cs
- Codec.cs
- XPathChildIterator.cs
- EdmToObjectNamespaceMap.cs
- NativeMethods.cs
- XmlAttribute.cs
- IndexerReference.cs
- NumericUpDown.cs
- _SSPISessionCache.cs
- DetailsViewRowCollection.cs
- GACMembershipCondition.cs
- XmlSerializer.cs
- ProtocolsSection.cs
- TableSectionStyle.cs
- ProfileManager.cs
- TextTreeRootTextBlock.cs
- ClientScriptManagerWrapper.cs
- DbParameterCollectionHelper.cs
- XmlSerializableWriter.cs