Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CommonXSendMessage.cs
- MiniConstructorInfo.cs
- SelectedGridItemChangedEvent.cs
- InstanceDataCollectionCollection.cs
- BamlMapTable.cs
- CallId.cs
- ControlBuilderAttribute.cs
- SqlDataSourceConfigureSortForm.cs
- DecimalFormatter.cs
- DataRecordObjectView.cs
- FlowPanelDesigner.cs
- WorkflowStateRollbackService.cs
- SvcMapFileSerializer.cs
- GPPOINT.cs
- QilValidationVisitor.cs
- WsiProfilesElement.cs
- DataGridDesigner.cs
- UnicodeEncoding.cs
- StorageFunctionMapping.cs
- SaveFileDialog.cs
- CacheChildrenQuery.cs
- EntryWrittenEventArgs.cs
- FileAuthorizationModule.cs
- ICspAsymmetricAlgorithm.cs
- ClientConfigurationSystem.cs
- wgx_exports.cs
- updatecommandorderer.cs
- CompilerTypeWithParams.cs
- IntMinMaxAggregationOperator.cs
- DependencyObjectValidator.cs
- ZeroOpNode.cs
- DrawingBrush.cs
- AdornerLayer.cs
- RequestDescription.cs
- Misc.cs
- DropShadowEffect.cs
- GridViewDeleteEventArgs.cs
- AddIn.cs
- BlobPersonalizationState.cs
- XPathArrayIterator.cs
- CancellationHandlerDesigner.cs
- TextServicesCompartmentContext.cs
- CodeTypeReferenceCollection.cs
- AutoGeneratedFieldProperties.cs
- PerformanceCounter.cs
- XmlIlTypeHelper.cs
- TraceUtils.cs
- PerfCounters.cs
- WebPartTransformerAttribute.cs
- ToolTipAutomationPeer.cs
- HostProtectionPermission.cs
- _CookieModule.cs
- Thickness.cs
- CheckBoxFlatAdapter.cs
- OleDbException.cs
- HostingEnvironment.cs
- GridViewAutomationPeer.cs
- TypeGeneratedEventArgs.cs
- MarkupCompiler.cs
- ToolStripContainer.cs
- LambdaValue.cs
- IndexedDataBuffer.cs
- EmbeddedMailObjectsCollection.cs
- SafeFindHandle.cs
- VirtualPathExtension.cs
- DropSource.cs
- ProcessHostConfigUtils.cs
- TrackBar.cs
- ComAwareEventInfo.cs
- CultureInfoConverter.cs
- Clipboard.cs
- SettingsPropertyCollection.cs
- PageContent.cs
- UnmanagedMemoryStream.cs
- ServiceOperationUIEditor.cs
- DataRecordInfo.cs
- StreamInfo.cs
- XDRSchema.cs
- ToolStripDropDownItem.cs
- DataGridViewRowCollection.cs
- DataGridPagerStyle.cs
- mediaeventshelper.cs
- Visual.cs
- ConstNode.cs
- Drawing.cs
- ReadWriteSpinLock.cs
- ListViewInsertionMark.cs
- Peer.cs
- Panel.cs
- TypedReference.cs
- HttpWriter.cs
- IriParsingElement.cs
- DataGridCaption.cs
- ResourceExpressionBuilder.cs
- AuthenticationModuleElementCollection.cs
- SerializationSectionGroup.cs
- NavigatingCancelEventArgs.cs
- LinqDataSourceUpdateEventArgs.cs
- DocumentOrderComparer.cs
- PointCollectionConverter.cs