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
- DataContractSerializerServiceBehavior.cs
- ResourceReferenceExpression.cs
- BooleanProjectedSlot.cs
- BitVector32.cs
- _ChunkParse.cs
- TreeBuilder.cs
- SqlServices.cs
- activationcontext.cs
- DetailsViewUpdatedEventArgs.cs
- DecoratedNameAttribute.cs
- DocumentSchemaValidator.cs
- _ConnectOverlappedAsyncResult.cs
- EmptyStringExpandableObjectConverter.cs
- StringSource.cs
- HatchBrush.cs
- FixedFindEngine.cs
- Graphics.cs
- TrackBarRenderer.cs
- SqlDataSourceDesigner.cs
- TimelineGroup.cs
- XPathSelectionIterator.cs
- UpdateCommand.cs
- PixelFormatConverter.cs
- UserPersonalizationStateInfo.cs
- TemplatedAdorner.cs
- WinFormsComponentEditor.cs
- ColorConverter.cs
- GPPOINT.cs
- PersianCalendar.cs
- SplitContainerDesigner.cs
- IPPacketInformation.cs
- GcHandle.cs
- NamespaceDecl.cs
- _UriTypeConverter.cs
- InputMethodStateChangeEventArgs.cs
- XmlDataSourceDesigner.cs
- FrameworkContentElement.cs
- SafeCoTaskMem.cs
- COM2ExtendedUITypeEditor.cs
- ErrorProvider.cs
- UnauthorizedWebPart.cs
- CodeTypeOfExpression.cs
- SqlDataSourceSelectingEventArgs.cs
- CharacterBuffer.cs
- FreezableDefaultValueFactory.cs
- SmtpFailedRecipientsException.cs
- Unit.cs
- WhitespaceRule.cs
- ErrorsHelper.cs
- CodeDomComponentSerializationService.cs
- DataGridViewColumnHeaderCell.cs
- ClientBuildManagerCallback.cs
- Attributes.cs
- HtmlFormAdapter.cs
- EncoderFallback.cs
- ValidatingPropertiesEventArgs.cs
- InputProviderSite.cs
- CollectionType.cs
- DecimalAnimationUsingKeyFrames.cs
- DataControlFieldCell.cs
- SettingsSection.cs
- ViewKeyConstraint.cs
- DataGridViewDataConnection.cs
- DtrList.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- NavigationFailedEventArgs.cs
- TextBoxView.cs
- WpfPayload.cs
- SessionPageStateSection.cs
- DetailsViewDeletedEventArgs.cs
- SystemBrushes.cs
- EventToken.cs
- DependencyObjectPropertyDescriptor.cs
- PointIndependentAnimationStorage.cs
- PanelDesigner.cs
- Listener.cs
- RelationshipNavigation.cs
- ColumnMapProcessor.cs
- SqlUtil.cs
- Pkcs7Recipient.cs
- ScriptMethodAttribute.cs
- RangeContentEnumerator.cs
- PersistenceTypeAttribute.cs
- ContentPathSegment.cs
- Size3D.cs
- DesignerCommandSet.cs
- StateMachineWorkflowDesigner.cs
- ParserOptions.cs
- CodeCastExpression.cs
- ChannelParameterCollection.cs
- CollaborationHelperFunctions.cs
- IImplicitResourceProvider.cs
- Maps.cs
- ToolStripDropDownMenu.cs
- StylusButtonEventArgs.cs
- ResourceWriter.cs
- PropertyGridEditorPart.cs
- Parameter.cs
- DetectRunnableInstancesTask.cs
- EditableRegion.cs