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
- ErasingStroke.cs
- IPAddress.cs
- DataMisalignedException.cs
- SqlDataSource.cs
- IisTraceWebEventProvider.cs
- SmtpException.cs
- UriGenerator.cs
- JapaneseLunisolarCalendar.cs
- CodeGeneratorAttribute.cs
- MenuItemBinding.cs
- DataColumnSelectionConverter.cs
- ModelEditingScope.cs
- StyleSheetRefUrlEditor.cs
- ModelTreeEnumerator.cs
- AssemblyContextControlItem.cs
- PriorityBindingExpression.cs
- Geometry3D.cs
- CfgRule.cs
- _AuthenticationState.cs
- NamedPipeWorkerProcess.cs
- StructuredTypeEmitter.cs
- TimeSpan.cs
- ByeMessageCD1.cs
- ToggleProviderWrapper.cs
- ServiceNotStartedException.cs
- WebPartMovingEventArgs.cs
- CodeAttachEventStatement.cs
- AddInActivator.cs
- AdapterDictionary.cs
- UnauthorizedWebPart.cs
- ViewManager.cs
- UTF7Encoding.cs
- ReceiveCompletedEventArgs.cs
- GenerateTemporaryAssemblyTask.cs
- EventProviderClassic.cs
- HttpServerVarsCollection.cs
- IdentityHolder.cs
- UnknownBitmapDecoder.cs
- RemotingException.cs
- mediaclock.cs
- WeakReference.cs
- PathSegmentCollection.cs
- NumberFunctions.cs
- ServiceCredentials.cs
- NativeWindow.cs
- RelatedImageListAttribute.cs
- EventArgs.cs
- CryptoStream.cs
- RadioButtonStandardAdapter.cs
- ConfigurationException.cs
- LogicalExpr.cs
- PageParserFilter.cs
- util.cs
- RubberbandSelector.cs
- XsltCompileContext.cs
- DbTransaction.cs
- MemberExpression.cs
- DataServiceProviderMethods.cs
- SystemColors.cs
- SessionStateContainer.cs
- XmlStringTable.cs
- ComponentConverter.cs
- HostingEnvironmentSection.cs
- SpotLight.cs
- XmlCustomFormatter.cs
- DateTimeValueSerializerContext.cs
- LinkDescriptor.cs
- CodeMemberMethod.cs
- EventLogPermission.cs
- ActivityDelegate.cs
- XmlSchemas.cs
- QuaternionRotation3D.cs
- PageWrapper.cs
- ContentControl.cs
- DetailsViewAutoFormat.cs
- TypeGeneratedEventArgs.cs
- AudioException.cs
- Hyperlink.cs
- DispatcherProcessingDisabled.cs
- ListContractAdapter.cs
- GridViewRow.cs
- unitconverter.cs
- XmlToDatasetMap.cs
- StorageRoot.cs
- PipelineModuleStepContainer.cs
- EncoderParameters.cs
- RoutedEventConverter.cs
- InputScopeAttribute.cs
- AppDomainAttributes.cs
- Color.cs
- HGlobalSafeHandle.cs
- OleDbConnectionInternal.cs
- SqlBulkCopyColumnMapping.cs
- FileUtil.cs
- OleDbPermission.cs
- MimeFormReflector.cs
- OrderedDictionaryStateHelper.cs
- GridViewSelectEventArgs.cs
- DataGridColumnsPage.cs
- CharacterBufferReference.cs