Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckBoxPopupAdapter.cs
- CreateUserWizardStep.cs
- StreamGeometry.cs
- SqlCacheDependencyDatabaseCollection.cs
- Vector.cs
- FileSystemEventArgs.cs
- FileRecordSequenceCompletedAsyncResult.cs
- OdbcHandle.cs
- TextRangeAdaptor.cs
- RectangleF.cs
- EventTrigger.cs
- WpfSharedBamlSchemaContext.cs
- QualificationDataItem.cs
- StylusButton.cs
- OutputCacheSettingsSection.cs
- _SingleItemRequestCache.cs
- ToolStripManager.cs
- ApplyImportsAction.cs
- MessageSecurityException.cs
- ProxyFragment.cs
- Dictionary.cs
- ImageMap.cs
- InvalidateEvent.cs
- XmlHelper.cs
- JapaneseCalendar.cs
- ErrorWebPart.cs
- XmlArrayItemAttributes.cs
- PathFigure.cs
- PreviewControlDesigner.cs
- SchemaEntity.cs
- FactoryRecord.cs
- PolyBezierSegment.cs
- TemplateControlBuildProvider.cs
- entityreference_tresulttype.cs
- XmlSchemaAttributeGroupRef.cs
- UTF7Encoding.cs
- ParameterCollection.cs
- SQLGuid.cs
- ExecutionContext.cs
- ProviderConnectionPointCollection.cs
- Blend.cs
- SecurityDescriptor.cs
- WebBrowserContainer.cs
- WSHttpBindingCollectionElement.cs
- PrefixQName.cs
- VisualStyleInformation.cs
- CodePageUtils.cs
- assertwrapper.cs
- TextSyndicationContentKindHelper.cs
- CmsInterop.cs
- SqlInternalConnection.cs
- WebPageTraceListener.cs
- ConnectionConsumerAttribute.cs
- BuildProvider.cs
- ToolStripContentPanelRenderEventArgs.cs
- TileModeValidation.cs
- DataBoundControl.cs
- ReferentialConstraint.cs
- SqlVisitor.cs
- EntityClientCacheEntry.cs
- Vector3DCollectionValueSerializer.cs
- MinimizableAttributeTypeConverter.cs
- DataGridViewBindingCompleteEventArgs.cs
- SecUtil.cs
- EventLogPermissionAttribute.cs
- ModuleConfigurationInfo.cs
- GridView.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DispatchChannelSink.cs
- StringArrayConverter.cs
- DataMemberAttribute.cs
- IndexedSelectQueryOperator.cs
- CompilerTypeWithParams.cs
- EncryptedKey.cs
- XmlText.cs
- TranslateTransform3D.cs
- FileDetails.cs
- DbgUtil.cs
- WhitespaceReader.cs
- SqlSelectStatement.cs
- EditorPart.cs
- SecurityContextKeyIdentifierClause.cs
- DashStyles.cs
- ExportOptions.cs
- UnSafeCharBuffer.cs
- PageBuildProvider.cs
- XmlAttribute.cs
- PropertyEmitter.cs
- SapiAttributeParser.cs
- LayoutEngine.cs
- COAUTHINFO.cs
- SqlCacheDependency.cs
- CodeStatement.cs
- ToolStripContainer.cs
- MetadataCache.cs
- MemberBinding.cs
- ControlPaint.cs
- RC2.cs
- DataGridViewSortCompareEventArgs.cs
- DeviceSpecificDialogCachedState.cs