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
- SmtpAuthenticationManager.cs
- FileDialogCustomPlacesCollection.cs
- State.cs
- BooleanAnimationUsingKeyFrames.cs
- SkinBuilder.cs
- ReferenceEqualityComparer.cs
- SchemaDeclBase.cs
- _IPv6Address.cs
- BrowserCapabilitiesCodeGenerator.cs
- WindowsAuthenticationModule.cs
- Registry.cs
- CodeObjectCreateExpression.cs
- TreeViewItemAutomationPeer.cs
- RunClient.cs
- XmlDictionaryWriter.cs
- WorkflowServiceBuildProvider.cs
- RepeaterItemCollection.cs
- LiteralTextContainerControlBuilder.cs
- BaseParaClient.cs
- _TimerThread.cs
- BitmapMetadataBlob.cs
- ContentElement.cs
- SecurityUtils.cs
- ZipIOLocalFileBlock.cs
- GACMembershipCondition.cs
- ReadWriteSpinLock.cs
- SynchronizingStream.cs
- DebugController.cs
- IChannel.cs
- RegexWorker.cs
- SemaphoreSecurity.cs
- DefaultValueTypeConverter.cs
- ProxyHwnd.cs
- WebPartEditorCancelVerb.cs
- AsymmetricKeyExchangeFormatter.cs
- ListViewCommandEventArgs.cs
- safePerfProviderHandle.cs
- SkewTransform.cs
- SchemaSetCompiler.cs
- EpmTargetTree.cs
- TextSerializer.cs
- ReturnEventArgs.cs
- RoleGroup.cs
- AutomationPattern.cs
- UnsafeNativeMethods.cs
- DispatcherEventArgs.cs
- DateTimeParse.cs
- Exceptions.cs
- UdpUtility.cs
- SqlGenerator.cs
- TextControl.cs
- DeliveryStrategy.cs
- FocusManager.cs
- WindowsMenu.cs
- CircleHotSpot.cs
- UnSafeCharBuffer.cs
- NativeMethods.cs
- TextProviderWrapper.cs
- DataListDesigner.cs
- ChtmlTextWriter.cs
- VSDExceptions.cs
- OrderedHashRepartitionStream.cs
- ColorAnimationUsingKeyFrames.cs
- ParserStreamGeometryContext.cs
- Int32AnimationBase.cs
- ObservableCollection.cs
- NamedElement.cs
- streamingZipPartStream.cs
- StringConcat.cs
- Mouse.cs
- ThreadAttributes.cs
- HttpListener.cs
- FileVersionInfo.cs
- HashAlgorithm.cs
- ILGen.cs
- QilStrConcat.cs
- IIS7UserPrincipal.cs
- ZipIOLocalFileDataDescriptor.cs
- PasswordBoxAutomationPeer.cs
- ListViewItem.cs
- Vector3DAnimationUsingKeyFrames.cs
- WebPartCloseVerb.cs
- ConnectionPoint.cs
- complextypematerializer.cs
- DataGridItem.cs
- HyperLinkDesigner.cs
- NotImplementedException.cs
- ClientData.cs
- Delegate.cs
- DiscoveryReference.cs
- VerificationException.cs
- MetadataArtifactLoaderCompositeFile.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- AnnotationResourceCollection.cs
- FileStream.cs
- WebPartDisplayModeEventArgs.cs
- ReplyChannelBinder.cs
- DecimalAnimation.cs
- PartialList.cs
- RepeaterCommandEventArgs.cs