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
- NamedPipeHostedTransportConfiguration.cs
- DbConnectionPoolGroupProviderInfo.cs
- PreservationFileWriter.cs
- KeyValueSerializer.cs
- NamespaceDecl.cs
- DashStyle.cs
- safemediahandle.cs
- DataGridViewRow.cs
- AssemblyInfo.cs
- GridViewUpdatedEventArgs.cs
- BaseAsyncResult.cs
- Exceptions.cs
- OuterGlowBitmapEffect.cs
- ExtensionDataObject.cs
- DefaultDiscoveryService.cs
- ParameterReplacerVisitor.cs
- WaitHandleCannotBeOpenedException.cs
- KeyedHashAlgorithm.cs
- GenericParameterDataContract.cs
- EndCreateSecurityTokenRequest.cs
- SizeKeyFrameCollection.cs
- Rules.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- _SslStream.cs
- DbConnectionHelper.cs
- StyleCollection.cs
- MdiWindowListStrip.cs
- XmlDictionaryString.cs
- MultiAsyncResult.cs
- IndexerNameAttribute.cs
- MaterializeFromAtom.cs
- EditorPart.cs
- UndirectedGraph.cs
- Resources.Designer.cs
- RepeaterItemCollection.cs
- DesignerWithHeader.cs
- GridViewPageEventArgs.cs
- baseshape.cs
- CellTreeNode.cs
- FunctionCommandText.cs
- SafeNativeMethodsMilCoreApi.cs
- Cursor.cs
- PolicyVersionConverter.cs
- HijriCalendar.cs
- SqlDataSourceSelectingEventArgs.cs
- XmlDataSource.cs
- BufferBuilder.cs
- HScrollProperties.cs
- SqlConnectionString.cs
- XPathNodePointer.cs
- ComponentSerializationService.cs
- WindowsGraphicsCacheManager.cs
- ServiceModelActivationSectionGroup.cs
- TextTreeFixupNode.cs
- DefaultSerializationProviderAttribute.cs
- RegexCode.cs
- PrinterUnitConvert.cs
- Missing.cs
- PenCursorManager.cs
- TextTreeFixupNode.cs
- EdmValidator.cs
- EventSchemaTraceListener.cs
- MarkupObject.cs
- Math.cs
- HtmlElementEventArgs.cs
- SecurityPermission.cs
- SecurityListenerSettingsLifetimeManager.cs
- OleDbEnumerator.cs
- MethodBuilderInstantiation.cs
- ReliabilityContractAttribute.cs
- ColorTranslator.cs
- ImagingCache.cs
- RMPermissions.cs
- TextContainerChangedEventArgs.cs
- FormViewModeEventArgs.cs
- GrowingArray.cs
- HandlerBase.cs
- CommandConverter.cs
- CheckBoxStandardAdapter.cs
- DispatchWrapper.cs
- TraceLog.cs
- UnwrappedTypesXmlSerializerManager.cs
- OdbcHandle.cs
- SystemColorTracker.cs
- CacheSection.cs
- DataGridViewRow.cs
- TraceSection.cs
- DBCommand.cs
- BStrWrapper.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- TableDetailsCollection.cs
- SHA1CryptoServiceProvider.cs
- BeginEvent.cs
- SQLCharsStorage.cs
- RoleGroupCollection.cs
- DesignObjectWrapper.cs
- MimeMapping.cs
- wmiprovider.cs
- ChildrenQuery.cs