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
- SoapFaultCodes.cs
- ValidationPropertyAttribute.cs
- SecurityAppliedMessage.cs
- CookieProtection.cs
- SyndicationLink.cs
- _SslState.cs
- ProtocolViolationException.cs
- EntityObject.cs
- WebScriptMetadataFormatter.cs
- ResolveNameEventArgs.cs
- EventItfInfo.cs
- DocumentPageHost.cs
- HttpModuleCollection.cs
- ContainsRowNumberChecker.cs
- MembershipUser.cs
- WebCategoryAttribute.cs
- MetadataCacheItem.cs
- DesignerRegion.cs
- DateTimeHelper.cs
- InputQueue.cs
- SqlDataSourceCommandEventArgs.cs
- _KerberosClient.cs
- BrowserCapabilitiesCompiler.cs
- View.cs
- TypeSystem.cs
- SafeCryptContextHandle.cs
- ToolStripPanel.cs
- MobileControlsSectionHelper.cs
- MappingException.cs
- MethodBuilderInstantiation.cs
- CompositeCollection.cs
- ComponentRenameEvent.cs
- FileSystemEventArgs.cs
- RuleSettings.cs
- WebRequestModuleElement.cs
- GenericsNotImplementedException.cs
- Emitter.cs
- ImageMapEventArgs.cs
- CellNormalizer.cs
- hresults.cs
- ResourcesGenerator.cs
- DataSvcMapFile.cs
- AmbientProperties.cs
- WpfPayload.cs
- DiscriminatorMap.cs
- UserControlCodeDomTreeGenerator.cs
- TransformCollection.cs
- EvidenceTypeDescriptor.cs
- FtpWebRequest.cs
- UIAgentAsyncEndRequest.cs
- StartUpEventArgs.cs
- SkewTransform.cs
- BuildProviderAppliesToAttribute.cs
- DocumentAutomationPeer.cs
- DropShadowEffect.cs
- DynamicDocumentPaginator.cs
- CallContext.cs
- MenuItemCollection.cs
- InvalidEnumArgumentException.cs
- KeyFrames.cs
- OutputCacheModule.cs
- WindowPattern.cs
- Byte.cs
- AsymmetricKeyExchangeDeformatter.cs
- ScriptManager.cs
- DocumentScope.cs
- ResourceDisplayNameAttribute.cs
- Quaternion.cs
- DataControlFieldCollection.cs
- PackagingUtilities.cs
- RevocationPoint.cs
- AuthenticationService.cs
- TimelineGroup.cs
- Convert.cs
- DataPagerFieldItem.cs
- DictionaryBase.cs
- DesignerLinkAdapter.cs
- PropertyNames.cs
- EntityViewGenerator.cs
- TextAction.cs
- TemplateEditingVerb.cs
- Vector3DValueSerializer.cs
- WebPartConnectionCollection.cs
- DeclarativeCatalogPart.cs
- CacheSection.cs
- DeadCharTextComposition.cs
- Registry.cs
- Debug.cs
- DrawingServices.cs
- SecurityManager.cs
- CommonProperties.cs
- ProcessThreadDesigner.cs
- TcpHostedTransportConfiguration.cs
- TraceFilter.cs
- DataServiceContext.cs
- DynamicEndpointElement.cs
- XmlIncludeAttribute.cs
- TextAnchor.cs
- HttpListenerContext.cs
- XmlILAnnotation.cs