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
- GPPOINTF.cs
- SmtpReplyReaderFactory.cs
- RotateTransform.cs
- ReferencedCollectionType.cs
- Predicate.cs
- __Filters.cs
- SystemResourceHost.cs
- SystemIcmpV6Statistics.cs
- SqlDataReaderSmi.cs
- DelegatingConfigHost.cs
- DeclarativeCatalogPartDesigner.cs
- WebBrowserBase.cs
- ToolStripDropDownDesigner.cs
- Literal.cs
- ContentPosition.cs
- ReadOnlyCollectionBuilder.cs
- AvTraceDetails.cs
- MessageQueuePermissionEntry.cs
- ContractAdapter.cs
- RadioButtonStandardAdapter.cs
- Internal.cs
- hresults.cs
- XmlSchemaAny.cs
- MulticastNotSupportedException.cs
- NotificationContext.cs
- ErrorTableItemStyle.cs
- SmtpNetworkElement.cs
- Stylesheet.cs
- Transform3D.cs
- MetadataArtifactLoaderCompositeResource.cs
- InkSerializer.cs
- AnnotationResourceChangedEventArgs.cs
- Pair.cs
- RSAPKCS1SignatureDeformatter.cs
- RelatedCurrencyManager.cs
- ProgressBarRenderer.cs
- EncryptedPackage.cs
- LocatorPartList.cs
- XmlSchemaAttributeGroup.cs
- ExeContext.cs
- UmAlQuraCalendar.cs
- WorkflowOperationContext.cs
- VoiceChangeEventArgs.cs
- EmulateRecognizeCompletedEventArgs.cs
- TransformPatternIdentifiers.cs
- TextEditorLists.cs
- ProfileGroupSettingsCollection.cs
- GeometryModel3D.cs
- ProgressChangedEventArgs.cs
- LogConverter.cs
- NativeMethods.cs
- FloaterParagraph.cs
- CodeMemberMethod.cs
- TextParentUndoUnit.cs
- OptionalColumn.cs
- BufferedGraphics.cs
- EdmMember.cs
- MailHeaderInfo.cs
- FunctionNode.cs
- FontFamilyConverter.cs
- Span.cs
- HttpProcessUtility.cs
- MetadataProperty.cs
- GlyphElement.cs
- TableLayoutPanelBehavior.cs
- UnsafeNativeMethods.cs
- LicenseManager.cs
- EncryptedData.cs
- TableTextElementCollectionInternal.cs
- ConsumerConnectionPoint.cs
- OutputCacheProfileCollection.cs
- CryptoStream.cs
- XslAstAnalyzer.cs
- HtmlTableRow.cs
- StateWorkerRequest.cs
- elementinformation.cs
- ReachPageContentCollectionSerializerAsync.cs
- XmlValidatingReaderImpl.cs
- CodeDirectionExpression.cs
- SystemColorTracker.cs
- GatewayIPAddressInformationCollection.cs
- SrgsGrammarCompiler.cs
- SaveWorkflowCommand.cs
- XmlNamedNodeMap.cs
- BitmapFrameDecode.cs
- PriorityQueue.cs
- ProcessInputEventArgs.cs
- CssClassPropertyAttribute.cs
- FileUtil.cs
- SecuritySessionFilter.cs
- TypeNameConverter.cs
- EnumMemberAttribute.cs
- DesignerSerializationOptionsAttribute.cs
- RequiredFieldValidator.cs
- NetworkInterface.cs
- CqlLexer.cs
- ISessionStateStore.cs
- XmlSchemaSimpleContentRestriction.cs
- WebPartHeaderCloseVerb.cs
- ApplicationDirectory.cs