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
- X509AudioLogo.cs
- EdmTypeAttribute.cs
- ImageClickEventArgs.cs
- COM2PropertyPageUITypeConverter.cs
- TraceHandlerErrorFormatter.cs
- OracleCommandSet.cs
- GradientSpreadMethodValidation.cs
- StylusDevice.cs
- ByteStorage.cs
- CodeComment.cs
- ResetableIterator.cs
- UrlAuthorizationModule.cs
- ReadOnlyCollectionBuilder.cs
- FixedSOMTextRun.cs
- HttpModuleAction.cs
- DirectoryInfo.cs
- ObjectMemberMapping.cs
- ThemeDirectoryCompiler.cs
- DesignTimeTemplateParser.cs
- ComplexPropertyEntry.cs
- TraceSection.cs
- ObjectStateEntry.cs
- XmlRawWriter.cs
- ThemeInfoAttribute.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- Pair.cs
- SafeNativeMethods.cs
- DrawingBrush.cs
- SqlUtils.cs
- WebPartVerbCollection.cs
- StaticSiteMapProvider.cs
- EastAsianLunisolarCalendar.cs
- FontFamilyConverter.cs
- ObjectDataSourceView.cs
- XhtmlMobileTextWriter.cs
- BinaryParser.cs
- ResolveResponseInfo.cs
- RSAPKCS1SignatureDeformatter.cs
- GridItem.cs
- CriticalExceptions.cs
- AssociationSetMetadata.cs
- ToolStripSeparator.cs
- ConditionalAttribute.cs
- BitmapImage.cs
- PathGradientBrush.cs
- CultureSpecificStringDictionary.cs
- DocumentViewerAutomationPeer.cs
- InputScope.cs
- UserNamePasswordValidator.cs
- TextDocumentView.cs
- ServiceParser.cs
- FixedLineResult.cs
- SpellerInterop.cs
- SqlDataSourceConfigureSortForm.cs
- SafeHandles.cs
- DataChangedEventManager.cs
- SiteMapSection.cs
- EditingCoordinator.cs
- CodePageUtils.cs
- ZipIOBlockManager.cs
- ToolStripGripRenderEventArgs.cs
- ParameterBuilder.cs
- SystemUnicastIPAddressInformation.cs
- SQLInt32Storage.cs
- ConfigurationLocationCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- TableCell.cs
- LeaseManager.cs
- HashMembershipCondition.cs
- XsdDataContractImporter.cs
- SoapCodeExporter.cs
- TimelineGroup.cs
- ReadOnlyCollection.cs
- ViewGenerator.cs
- HierarchicalDataSourceControl.cs
- MsmqBindingElementBase.cs
- StorageConditionPropertyMapping.cs
- XmlKeywords.cs
- XmlSchemaAppInfo.cs
- DCSafeHandle.cs
- LiteralControl.cs
- Rfc2898DeriveBytes.cs
- Int32AnimationBase.cs
- CodeGenerator.cs
- CorrelationManager.cs
- AdapterDictionary.cs
- ReferencedCollectionType.cs
- StreamReader.cs
- SurrogateSelector.cs
- DocumentOrderComparer.cs
- UnsafeNativeMethods.cs
- ImageSource.cs
- ApplicationDirectoryMembershipCondition.cs
- DataMemberConverter.cs
- ResolveCriteria.cs
- SiteMapPathDesigner.cs
- Transform3D.cs
- State.cs
- OleDbConnectionInternal.cs
- ValueUtilsSmi.cs