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
- IUnknownConstantAttribute.cs
- RemoteWebConfigurationHostServer.cs
- COMException.cs
- DbgUtil.cs
- HtmlTextBoxAdapter.cs
- WmpBitmapDecoder.cs
- Oid.cs
- OverflowException.cs
- PrefixHandle.cs
- SpeechDetectedEventArgs.cs
- CodeFieldReferenceExpression.cs
- WSSecureConversationFeb2005.cs
- Content.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SignedXml.cs
- ListViewGroup.cs
- NamedObject.cs
- PreservationFileReader.cs
- ClosableStream.cs
- SerialReceived.cs
- Vector3DCollectionValueSerializer.cs
- BridgeDataRecord.cs
- InputLanguageSource.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- NavigationProperty.cs
- SqlCharStream.cs
- AspNetHostingPermission.cs
- RequestCacheValidator.cs
- SchemaTableColumn.cs
- DrawingContextDrawingContextWalker.cs
- StringArrayConverter.cs
- xsdvalidator.cs
- TextElementEnumerator.cs
- ApplicationSettingsBase.cs
- HttpBrowserCapabilitiesWrapper.cs
- PreviewPageInfo.cs
- AssemblyCollection.cs
- CompilerHelpers.cs
- StreamingContext.cs
- DateBoldEvent.cs
- Italic.cs
- Expressions.cs
- SQLResource.cs
- AutoGeneratedFieldProperties.cs
- Pair.cs
- InstalledFontCollection.cs
- WindowsGraphicsWrapper.cs
- WebRequestModuleElement.cs
- VSDExceptions.cs
- BamlBinaryWriter.cs
- ModelUIElement3D.cs
- XmlNodeComparer.cs
- PathFigure.cs
- ContextConfiguration.cs
- RootBuilder.cs
- DictionaryBase.cs
- TableRowCollection.cs
- DbUpdateCommandTree.cs
- QueryHandler.cs
- AutoResetEvent.cs
- GenericTextProperties.cs
- AlignmentYValidation.cs
- SchemaNotation.cs
- counter.cs
- NegatedCellConstant.cs
- ChangeNode.cs
- MultiPropertyDescriptorGridEntry.cs
- ImageBrush.cs
- Point.cs
- Win32.cs
- WindowsIdentity.cs
- InvalidOleVariantTypeException.cs
- UIElementHelper.cs
- TypeBuilderInstantiation.cs
- CacheVirtualItemsEvent.cs
- XmlChildEnumerator.cs
- Underline.cs
- ProjectionPlan.cs
- EventProviderClassic.cs
- CannotUnloadAppDomainException.cs
- ContextStaticAttribute.cs
- MasterPage.cs
- ReservationCollection.cs
- StopRoutingHandler.cs
- PersianCalendar.cs
- XsdDuration.cs
- FloatSumAggregationOperator.cs
- TraceHwndHost.cs
- GuidTagList.cs
- Route.cs
- Convert.cs
- NumberSubstitution.cs
- BigIntegerStorage.cs
- SiteMapNodeItemEventArgs.cs
- CodeMemberField.cs
- FormViewPageEventArgs.cs
- FrameworkTextComposition.cs
- CompModSwitches.cs
- ErrorFormatter.cs
- PlainXmlSerializer.cs