Code:
/ 4.0 / 4.0 / untmp / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegistryKey.cs
- BaseHashHelper.cs
- ColumnCollection.cs
- BindValidator.cs
- FormViewDeletedEventArgs.cs
- MediaElementAutomationPeer.cs
- XpsDocumentEvent.cs
- ExpressionBuilder.cs
- Literal.cs
- ConfigXmlWhitespace.cs
- ProfileSettingsCollection.cs
- ProjectionPruner.cs
- TimelineClockCollection.cs
- PageStatePersister.cs
- DataRelationPropertyDescriptor.cs
- HttpHostedTransportConfiguration.cs
- Vector3DValueSerializer.cs
- PersistNameAttribute.cs
- DataGridViewRowStateChangedEventArgs.cs
- SQLGuidStorage.cs
- ObjectViewListener.cs
- ExtractorMetadata.cs
- DataPager.cs
- SQLBoolean.cs
- TextDecorationCollection.cs
- ZipPackage.cs
- DynamicMethod.cs
- TransactionsSectionGroup.cs
- WindowsAltTab.cs
- DependencyPropertyAttribute.cs
- StructuralType.cs
- XmlMapping.cs
- ApplicationBuildProvider.cs
- Verify.cs
- NativeActivityFaultContext.cs
- MimeWriter.cs
- DictionaryEntry.cs
- ApplicationGesture.cs
- OperationGenerator.cs
- BindingCompleteEventArgs.cs
- SafeNativeMethods.cs
- ObjectParameter.cs
- SafeNativeMethodsCLR.cs
- PipeSecurity.cs
- CreatingCookieEventArgs.cs
- StorageSetMapping.cs
- SqlIdentifier.cs
- HttpRawResponse.cs
- QilTernary.cs
- XmlSerializerVersionAttribute.cs
- EventMappingSettingsCollection.cs
- DataControlFieldHeaderCell.cs
- AnonymousIdentificationModule.cs
- DNS.cs
- ReadOnlyHierarchicalDataSourceView.cs
- EntitySetRetriever.cs
- XmlRootAttribute.cs
- InfoCardSymmetricAlgorithm.cs
- IssuanceLicense.cs
- MembershipUser.cs
- UpDownEvent.cs
- StyleXamlParser.cs
- MinMaxParagraphWidth.cs
- TextDecoration.cs
- SequentialOutput.cs
- Timeline.cs
- ResolveResponseInfo.cs
- PassportIdentity.cs
- StreamGeometryContext.cs
- ConfigXmlComment.cs
- MobileComponentEditorPage.cs
- UrlMappingsSection.cs
- TdsParser.cs
- SymbolDocumentGenerator.cs
- ReachDocumentPageSerializer.cs
- JsonQNameDataContract.cs
- MessageBox.cs
- DataGridViewToolTip.cs
- X509Certificate.cs
- UnsignedPublishLicense.cs
- ReadOnlyDictionary.cs
- RadioButtonList.cs
- FontResourceCache.cs
- ResourceType.cs
- DbProviderFactoriesConfigurationHandler.cs
- BatchServiceHost.cs
- UrlPropertyAttribute.cs
- XmlnsPrefixAttribute.cs
- AttachedAnnotationChangedEventArgs.cs
- HttpRuntime.cs
- ConnectionConsumerAttribute.cs
- ModuleElement.cs
- FormsAuthenticationUserCollection.cs
- DocumentViewerBase.cs
- ColumnPropertiesGroup.cs
- PointF.cs
- NoneExcludedImageIndexConverter.cs
- HtmlShim.cs
- PseudoWebRequest.cs
- ContextCorrelationInitializer.cs