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
- MetadataCache.cs
- XmlQueryOutput.cs
- AdRotator.cs
- ListViewGroupConverter.cs
- PersonalizationAdministration.cs
- SplayTreeNode.cs
- X509IssuerSerialKeyIdentifierClause.cs
- UIntPtr.cs
- _IPv6Address.cs
- DataListItem.cs
- WindowsComboBox.cs
- ZipPackagePart.cs
- XhtmlConformanceSection.cs
- HMAC.cs
- TrackingCondition.cs
- NativeMethods.cs
- DefaultTextStoreTextComposition.cs
- SqlDataSource.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- TargetException.cs
- NullableDecimalAverageAggregationOperator.cs
- HijriCalendar.cs
- WizardSideBarListControlItem.cs
- DesignerCommandAdapter.cs
- _UncName.cs
- EventHandlersStore.cs
- DeclaredTypeElement.cs
- PersonalizationEntry.cs
- CompareValidator.cs
- ContextQuery.cs
- DataControlFieldCollection.cs
- GZipDecoder.cs
- RijndaelManagedTransform.cs
- FileAuthorizationModule.cs
- LinqDataSourceDisposeEventArgs.cs
- InstanceKeyNotReadyException.cs
- AddInControllerImpl.cs
- QuestionEventArgs.cs
- SoapAttributes.cs
- MediaElement.cs
- BamlCollectionHolder.cs
- SemaphoreSecurity.cs
- ClientSponsor.cs
- CompareValidator.cs
- QuaternionIndependentAnimationStorage.cs
- DataBinder.cs
- Utilities.cs
- WebPartConnectVerb.cs
- UnionCodeGroup.cs
- XPathParser.cs
- ConnectionPoint.cs
- ScopedKnownTypes.cs
- ForeignConstraint.cs
- WorkflowOwnershipException.cs
- Hashtable.cs
- ApplyTemplatesAction.cs
- XmlElementAttributes.cs
- Wildcard.cs
- iisPickupDirectory.cs
- Comparer.cs
- MetadataPropertyvalue.cs
- DynamicMethod.cs
- XmlRawWriterWrapper.cs
- ProxyManager.cs
- HighlightComponent.cs
- QueryLifecycle.cs
- Int32CAMarshaler.cs
- PersonalizableTypeEntry.cs
- SetterBase.cs
- PeerNeighborManager.cs
- GraphicsPathIterator.cs
- PageCodeDomTreeGenerator.cs
- PeerServiceMessageContracts.cs
- GridEntryCollection.cs
- basevalidator.cs
- MenuCommandsChangedEventArgs.cs
- MetaTable.cs
- WinOEToolBoxItem.cs
- SiteMapNode.cs
- ToolStripDropDownClosingEventArgs.cs
- XmlILTrace.cs
- XmlBaseReader.cs
- EnumValidator.cs
- Vector3DAnimationBase.cs
- KeyMatchBuilder.cs
- PageThemeBuildProvider.cs
- MachineKeyConverter.cs
- BackStopAuthenticationModule.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- PkcsMisc.cs
- FixedBufferAttribute.cs
- ReadOnlyDictionary.cs
- ListenerUnsafeNativeMethods.cs
- ColumnReorderedEventArgs.cs
- TemplateManager.cs
- LinearKeyFrames.cs
- AsymmetricKeyExchangeFormatter.cs
- PreservationFileReader.cs
- XmlNullResolver.cs
- WriteLine.cs