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
- SharedPersonalizationStateInfo.cs
- _NetworkingPerfCounters.cs
- ResourceDictionary.cs
- CodeGeneratorOptions.cs
- ComMethodElement.cs
- VirtualizingPanel.cs
- SpecularMaterial.cs
- LabelLiteral.cs
- TypeName.cs
- XmlMapping.cs
- WindowsTitleBar.cs
- VersionConverter.cs
- securestring.cs
- DisplayMemberTemplateSelector.cs
- RemotingAttributes.cs
- StoreContentChangedEventArgs.cs
- TextMarkerSource.cs
- IList.cs
- SmtpReplyReader.cs
- SafeRegistryHandle.cs
- RegisteredHiddenField.cs
- MatrixTransform3D.cs
- BitmapEffectGeneralTransform.cs
- InvokeProviderWrapper.cs
- RangeBase.cs
- VariableQuery.cs
- WebPartEditorOkVerb.cs
- TypeLoadException.cs
- TextSelectionHelper.cs
- ExpressionBindingCollection.cs
- TypefaceMetricsCache.cs
- CompilerError.cs
- PointUtil.cs
- SmiMetaData.cs
- TreeViewAutomationPeer.cs
- X509Utils.cs
- ConfigurationElement.cs
- TypeUtil.cs
- dsa.cs
- XmlnsDefinitionAttribute.cs
- indexingfiltermarshaler.cs
- SupportsEventValidationAttribute.cs
- ObjectItemAttributeAssemblyLoader.cs
- TextTrailingWordEllipsis.cs
- ReversePositionQuery.cs
- ApplicationProxyInternal.cs
- VirtualizedItemPattern.cs
- PreProcessInputEventArgs.cs
- DataBindingList.cs
- _NegotiateClient.cs
- BitmapFrame.cs
- FileDialogCustomPlace.cs
- StreamWithDictionary.cs
- TimeSpanConverter.cs
- QueryInterceptorAttribute.cs
- SerTrace.cs
- ResourceFallbackManager.cs
- Vector3DKeyFrameCollection.cs
- InfiniteTimeSpanConverter.cs
- WebPartVerbsEventArgs.cs
- MutexSecurity.cs
- X509ChainPolicy.cs
- XmlSchemaObjectCollection.cs
- CqlErrorHelper.cs
- DeviceContexts.cs
- RecordBuilder.cs
- DefaultPrintController.cs
- CharacterHit.cs
- SuppressMessageAttribute.cs
- CommonProperties.cs
- SQLBoolean.cs
- CategoryNameCollection.cs
- StateManagedCollection.cs
- ThrowHelper.cs
- CqlLexerHelpers.cs
- ToolStripOverflowButton.cs
- ApplicationServicesHostFactory.cs
- BindingCompleteEventArgs.cs
- XmlDataSourceView.cs
- NativeMethods.cs
- SizeAnimationClockResource.cs
- AssemblyBuilder.cs
- WebRequestModuleElementCollection.cs
- CultureTable.cs
- PasswordRecovery.cs
- VectorValueSerializer.cs
- HandleTable.cs
- COM2PictureConverter.cs
- TransactionState.cs
- ExternalCalls.cs
- Stylesheet.cs
- XmlUrlEditor.cs
- X509UI.cs
- TextServicesCompartmentContext.cs
- BinaryFormatterWriter.cs
- ConditionCollection.cs
- TransformGroup.cs
- ExclusiveCanonicalizationTransform.cs
- LayoutTable.cs
- VirtualPathUtility.cs