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
- smtppermission.cs
- SqlCachedBuffer.cs
- Rectangle.cs
- OdbcConnectionOpen.cs
- LoginName.cs
- LongMinMaxAggregationOperator.cs
- HttpListenerException.cs
- Cast.cs
- WebServiceTypeData.cs
- PreviewPrintController.cs
- VerticalAlignConverter.cs
- ModifierKeysValueSerializer.cs
- BaseDataList.cs
- CounterCreationDataConverter.cs
- Pen.cs
- Documentation.cs
- ProxyWebPartConnectionCollection.cs
- QuadraticBezierSegment.cs
- TextEditorMouse.cs
- ApplicationHost.cs
- IPeerNeighbor.cs
- DictionaryBase.cs
- pingexception.cs
- KeyValueConfigurationCollection.cs
- ExecutionEngineException.cs
- DataSysAttribute.cs
- AuthenticateEventArgs.cs
- WebConfigurationHost.cs
- Brush.cs
- BitmapSourceSafeMILHandle.cs
- Rect.cs
- FlowLayoutPanel.cs
- StrokeNodeData.cs
- DigestTraceRecordHelper.cs
- Column.cs
- CodeGenerationManager.cs
- StructuredType.cs
- MouseEvent.cs
- BinaryReader.cs
- PropertyChangedEventManager.cs
- TableChangeProcessor.cs
- xmlglyphRunInfo.cs
- TryLoadRunnableWorkflowCommand.cs
- Converter.cs
- TypeDependencyAttribute.cs
- SizeAnimationClockResource.cs
- QilLoop.cs
- XmlSerializationReader.cs
- MethodSet.cs
- ScriptResourceInfo.cs
- diagnosticsswitches.cs
- AdPostCacheSubstitution.cs
- SingleStorage.cs
- ResourceDescriptionAttribute.cs
- MaterializeFromAtom.cs
- WebPartEditorCancelVerb.cs
- ImageMap.cs
- Calendar.cs
- InkSerializer.cs
- CodeNamespace.cs
- PerformanceCounterLib.cs
- UnsafeNativeMethods.cs
- HostProtectionPermission.cs
- SimpleRecyclingCache.cs
- ConditionalDesigner.cs
- ExpanderAutomationPeer.cs
- OneOfConst.cs
- NativeMethods.cs
- DBSqlParser.cs
- ToolStripRendererSwitcher.cs
- HTMLTagNameToTypeMapper.cs
- ComplexTypeEmitter.cs
- SQLInt32.cs
- SqlConnectionHelper.cs
- DocumentGridPage.cs
- Package.cs
- PreProcessor.cs
- WhitespaceRuleReader.cs
- PowerModeChangedEventArgs.cs
- PropertyGeneratedEventArgs.cs
- AttributeProviderAttribute.cs
- PlainXmlDeserializer.cs
- RMEnrollmentPage3.cs
- DateTimePicker.cs
- ADMembershipUser.cs
- SplitContainer.cs
- InvalidCastException.cs
- EmptyImpersonationContext.cs
- FormatSettings.cs
- ClosableStream.cs
- BadImageFormatException.cs
- StorageModelBuildProvider.cs
- PropertyDescriptorCollection.cs
- XmlQueryStaticData.cs
- RunClient.cs
- HierarchicalDataBoundControlAdapter.cs
- Exceptions.cs
- ApplicationFileParser.cs
- XmlNodeWriter.cs
- Interlocked.cs