Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SiteIdentityPermission.cs
- PasswordTextContainer.cs
- SerialStream.cs
- counter.cs
- HttpSysSettings.cs
- OLEDB_Enum.cs
- ProviderManager.cs
- ThemeInfoAttribute.cs
- WebServiceErrorEvent.cs
- TdsParserHelperClasses.cs
- DynamicDiscoveryDocument.cs
- SettingsSection.cs
- RequestQueryParser.cs
- QuestionEventArgs.cs
- RetriableClipboard.cs
- MouseGestureConverter.cs
- GroupPartitionExpr.cs
- XhtmlBasicTextViewAdapter.cs
- BulletedListEventArgs.cs
- JournalEntry.cs
- brushes.cs
- XhtmlConformanceSection.cs
- TextureBrush.cs
- AsyncCompletedEventArgs.cs
- TaskFormBase.cs
- ObservableDictionary.cs
- SafeArchiveContext.cs
- FileEnumerator.cs
- TextParagraphCache.cs
- CustomAssemblyResolver.cs
- CapiSafeHandles.cs
- BitmapImage.cs
- ImageDrawing.cs
- uribuilder.cs
- SystemPens.cs
- WebResponse.cs
- SystemIcmpV4Statistics.cs
- ZipIOModeEnforcingStream.cs
- NetCodeGroup.cs
- PresentationSource.cs
- LZCodec.cs
- _SslStream.cs
- MemberRelationshipService.cs
- Stack.cs
- RequestTimeoutManager.cs
- DbConnectionPoolCounters.cs
- WebPartZoneBase.cs
- PageAdapter.cs
- MetadataSection.cs
- DetailsViewPageEventArgs.cs
- WebHeaderCollection.cs
- AuthenticationService.cs
- UInt16.cs
- ShapeTypeface.cs
- FastPropertyAccessor.cs
- SocketManager.cs
- ToolStripDropDownClosedEventArgs.cs
- PointCollectionValueSerializer.cs
- RootNamespaceAttribute.cs
- CompilationLock.cs
- XmlMtomWriter.cs
- HMACRIPEMD160.cs
- StreamDocument.cs
- StateDesigner.Helpers.cs
- CapabilitiesAssignment.cs
- SqlDuplicator.cs
- CodePrimitiveExpression.cs
- EventHandlerList.cs
- SchemaImporterExtensionsSection.cs
- AvtEvent.cs
- ConfigurationElementProperty.cs
- PageThemeBuildProvider.cs
- CompressionTransform.cs
- ObjectDataSourceFilteringEventArgs.cs
- AttachedPropertyMethodSelector.cs
- MemberHolder.cs
- SeverityFilter.cs
- GenericEnumerator.cs
- Header.cs
- DataGridItem.cs
- TaskFormBase.cs
- RuntimeDelegateArgument.cs
- DataBoundControlHelper.cs
- ReplyChannelBinder.cs
- Literal.cs
- ConfigXmlAttribute.cs
- ComponentDesigner.cs
- DropDownButton.cs
- DateTimeOffsetStorage.cs
- PrintingPermission.cs
- MembershipPasswordException.cs
- WindowsListViewItemStartMenu.cs
- WebPartMenuStyle.cs
- RecordsAffectedEventArgs.cs
- SystemFonts.cs
- ContentFileHelper.cs
- BuildManagerHost.cs
- Number.cs
- sitestring.cs
- ScrollViewer.cs