Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XMLUtil.cs
- FileStream.cs
- ResourceDictionaryCollection.cs
- ToolboxControl.cs
- iisPickupDirectory.cs
- HtmlInputPassword.cs
- GlobalizationAssembly.cs
- LinearKeyFrames.cs
- SvcMapFile.cs
- FormsAuthenticationCredentials.cs
- MruCache.cs
- ExtenderProvidedPropertyAttribute.cs
- StickyNoteContentControl.cs
- LicFileLicenseProvider.cs
- Overlapped.cs
- ObjectConverter.cs
- DynamicDataManager.cs
- CryptoKeySecurity.cs
- XmlILIndex.cs
- HScrollBar.cs
- ToolstripProfessionalRenderer.cs
- Char.cs
- Descriptor.cs
- EncryptedKey.cs
- DbSourceCommand.cs
- WebPartConnectionsCancelEventArgs.cs
- CodeCastExpression.cs
- HttpProcessUtility.cs
- XmlSchemaSequence.cs
- ConnectionManagementSection.cs
- ConnectionAcceptor.cs
- DrawingVisualDrawingContext.cs
- AvTrace.cs
- PathFigureCollectionConverter.cs
- MetadataHelper.cs
- CompilationUnit.cs
- ActivityExecutionWorkItem.cs
- ParallelRangeManager.cs
- XmlAnyElementAttributes.cs
- _ScatterGatherBuffers.cs
- GeneralTransform3D.cs
- Quaternion.cs
- ChangeConflicts.cs
- CannotUnloadAppDomainException.cs
- SubpageParagraph.cs
- HtmlGenericControl.cs
- StrokeNodeEnumerator.cs
- RangeContentEnumerator.cs
- InstancePersistence.cs
- GenericTypeParameterBuilder.cs
- CodeTryCatchFinallyStatement.cs
- PersonalizationDictionary.cs
- InputScopeNameConverter.cs
- CompilerGlobalScopeAttribute.cs
- LambdaCompiler.ControlFlow.cs
- PropertyValueChangedEvent.cs
- WebPartEditVerb.cs
- PropertySet.cs
- ConnectionConsumerAttribute.cs
- TraceInternal.cs
- MaskedTextBox.cs
- CompositeActivityValidator.cs
- NGCSerializationManagerAsync.cs
- unsafenativemethodsother.cs
- FormCollection.cs
- SessionState.cs
- CodeChecksumPragma.cs
- VisualTransition.cs
- CodeDelegateInvokeExpression.cs
- TableAdapterManagerHelper.cs
- BulletChrome.cs
- ListSortDescriptionCollection.cs
- AdCreatedEventArgs.cs
- ZipIOLocalFileHeader.cs
- SynchronousSendBindingElement.cs
- HostProtectionException.cs
- CurrencyWrapper.cs
- ReachDocumentReferenceSerializerAsync.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ContainerParaClient.cs
- WrapPanel.cs
- WorkflowInstance.cs
- TypeForwardedToAttribute.cs
- XmlBinaryWriterSession.cs
- TextBoxAutomationPeer.cs
- FloatAverageAggregationOperator.cs
- BaseTemplateCodeDomTreeGenerator.cs
- VersionedStreamOwner.cs
- CellLabel.cs
- UserValidatedEventArgs.cs
- _Win32.cs
- UidManager.cs
- XPathChildIterator.cs
- HostDesigntimeLicenseContext.cs
- Material.cs
- RuleSettings.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- SqlRowUpdatedEvent.cs
- OracleBinary.cs
- FieldTemplateFactory.cs