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
- WebOperationContext.cs
- ExternalCalls.cs
- TraceSection.cs
- ScrollBar.cs
- RowToFieldTransformer.cs
- XmlSchemaObjectCollection.cs
- ByteAnimationBase.cs
- SendKeys.cs
- LassoSelectionBehavior.cs
- SoapProtocolReflector.cs
- SystemFonts.cs
- XsdBuilder.cs
- ToolStripContainer.cs
- TdsParser.cs
- HtmlInputHidden.cs
- UpdateRecord.cs
- RouteItem.cs
- UpdatePanelTriggerCollection.cs
- TabRenderer.cs
- CheckBoxAutomationPeer.cs
- ValidatedControlConverter.cs
- XmlSerializerVersionAttribute.cs
- JobCollate.cs
- RunClient.cs
- Console.cs
- DataGridViewHitTestInfo.cs
- WebEventCodes.cs
- SyndicationElementExtension.cs
- IncrementalHitTester.cs
- OdbcRowUpdatingEvent.cs
- PrtTicket_Public.cs
- ConfigPathUtility.cs
- RecognizerInfo.cs
- XmlSchemaExporter.cs
- AuthorizationRuleCollection.cs
- XmlSchemaObject.cs
- ButtonAutomationPeer.cs
- PrintPreviewControl.cs
- PropertyGridEditorPart.cs
- MsmqChannelListenerBase.cs
- XmlSchemaExternal.cs
- MetadataArtifactLoaderCompositeFile.cs
- FileAuthorizationModule.cs
- UnsafePeerToPeerMethods.cs
- ColumnCollectionEditor.cs
- SvcMapFileLoader.cs
- OracleInfoMessageEventArgs.cs
- SafeFindHandle.cs
- Utils.cs
- AssemblyName.cs
- EntityClassGenerator.cs
- SafeMILHandle.cs
- NamespaceCollection.cs
- CallbackWrapper.cs
- SQLGuidStorage.cs
- MasterPageCodeDomTreeGenerator.cs
- NetPipeSection.cs
- ToolboxItem.cs
- RadioButtonList.cs
- ProfileBuildProvider.cs
- SqlCacheDependencyDatabaseCollection.cs
- MouseButtonEventArgs.cs
- ViewgenGatekeeper.cs
- PropertyDescriptorComparer.cs
- EditCommandColumn.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- VectorCollectionValueSerializer.cs
- LayoutInformation.cs
- DataPager.cs
- DBSqlParser.cs
- Transform3DGroup.cs
- WizardStepCollectionEditor.cs
- XamlToRtfParser.cs
- OracleConnectionFactory.cs
- PenLineCapValidation.cs
- PrintPageEvent.cs
- InfoCardSymmetricCrypto.cs
- QilPatternVisitor.cs
- XmlSchemaIdentityConstraint.cs
- LocatorGroup.cs
- IgnoreDataMemberAttribute.cs
- ConfigUtil.cs
- DataSourceCache.cs
- MobileControlPersister.cs
- TextOutput.cs
- UnsafeNativeMethods.cs
- ReflectionPermission.cs
- SmtpFailedRecipientsException.cs
- PathStreamGeometryContext.cs
- WebReferenceOptions.cs
- ButtonPopupAdapter.cs
- ComEventsHelper.cs
- ResourceReferenceExpression.cs
- Model3DGroup.cs
- HtmlTableCellCollection.cs
- DataGridViewButtonColumn.cs
- TrackingConditionCollection.cs
- TextEditorTables.cs
- RowsCopiedEventArgs.cs
- DataTransferEventArgs.cs