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
- CriticalFinalizerObject.cs
- ResourceReferenceKeyNotFoundException.cs
- BasicKeyConstraint.cs
- RedirectionProxy.cs
- IListConverters.cs
- CodeTypeMember.cs
- SoapReflector.cs
- ValidationRuleCollection.cs
- ConfigurationCollectionAttribute.cs
- Trace.cs
- Mouse.cs
- BitHelper.cs
- ButtonStandardAdapter.cs
- ValueTable.cs
- DataViewManager.cs
- HttpTransportSecurity.cs
- SplineKeyFrames.cs
- SortFieldComparer.cs
- DbConnectionPoolGroupProviderInfo.cs
- ReturnValue.cs
- DiscoveryInnerClientAdhocCD1.cs
- SQLInt16.cs
- EntityDataSourceStatementEditor.cs
- TaskDesigner.cs
- GetImportedCardRequest.cs
- EntityParameterCollection.cs
- UriTemplateTrieNode.cs
- FormClosedEvent.cs
- ZoneIdentityPermission.cs
- SQLDecimal.cs
- Errors.cs
- BitmapEffectCollection.cs
- DTCTransactionManager.cs
- NetSectionGroup.cs
- BevelBitmapEffect.cs
- BufferModeSettings.cs
- WindowsPen.cs
- ResXBuildProvider.cs
- Message.cs
- mediaclock.cs
- PropertyGridView.cs
- StatusBar.cs
- Color.cs
- FormsAuthenticationCredentials.cs
- MediaTimeline.cs
- ExpandedProjectionNode.cs
- Path.cs
- CompilationUtil.cs
- HttpWebRequestElement.cs
- XmlSchemaAny.cs
- DifferencingCollection.cs
- NameTable.cs
- PrimitiveDataContract.cs
- XmlSchemaAll.cs
- EventlogProvider.cs
- PenContexts.cs
- XamlWriterExtensions.cs
- TraceInternal.cs
- Comparer.cs
- DateTimeValueSerializerContext.cs
- Icon.cs
- ContentPlaceHolder.cs
- InternalsVisibleToAttribute.cs
- ApplicationFileParser.cs
- NonBatchDirectoryCompiler.cs
- MailMessageEventArgs.cs
- RouteParametersHelper.cs
- PinProtectionHelper.cs
- PersonalizationDictionary.cs
- LocalValueEnumerator.cs
- ArgumentOutOfRangeException.cs
- LifetimeServices.cs
- ZoneMembershipCondition.cs
- PanningMessageFilter.cs
- Soap12ServerProtocol.cs
- ContextBase.cs
- CaseInsensitiveHashCodeProvider.cs
- StringAnimationUsingKeyFrames.cs
- SapiRecognizer.cs
- DataGridViewBand.cs
- UniqueIdentifierService.cs
- PathGeometry.cs
- SqlExpressionNullability.cs
- ValidationSummary.cs
- BitmapEffectInput.cs
- TextContainerHelper.cs
- WebPartsSection.cs
- IIS7WorkerRequest.cs
- _SecureChannel.cs
- SamlSubject.cs
- CompilerInfo.cs
- ScriptDescriptor.cs
- LinqDataSource.cs
- LinqDataSource.cs
- XmlDataImplementation.cs
- XmlSchemaImporter.cs
- backend.cs
- ContainerParaClient.cs
- TypedElement.cs
- Size3DConverter.cs