Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / PerformanceCountersElement.cs / 1305376 / PerformanceCountersElement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Reflection; using System.Security.Permissions; public sealed class PerformanceCountersElement : ConfigurationElement { public PerformanceCountersElement() { this.properties.Add(this.enabled); } [ConfigurationProperty(ConfigurationStrings.Enabled, DefaultValue=false)] public bool Enabled { get { return (bool) this[this.enabled]; } set { this[this.enabled] = value; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty enabled = new ConfigurationProperty(ConfigurationStrings.Enabled, typeof(bool), false, ConfigurationPropertyOptions.None); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Reflection; using System.Security.Permissions; public sealed class PerformanceCountersElement : ConfigurationElement { public PerformanceCountersElement() { this.properties.Add(this.enabled); } [ConfigurationProperty(ConfigurationStrings.Enabled, DefaultValue=false)] public bool Enabled { get { return (bool) this[this.enabled]; } set { this[this.enabled] = value; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty enabled = new ConfigurationProperty(ConfigurationStrings.Enabled, typeof(bool), false, ConfigurationPropertyOptions.None); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StatusBarAutomationPeer.cs
- BaseConfigurationRecord.cs
- DesignObjectWrapper.cs
- DataBindingList.cs
- DeviceContext.cs
- DateTime.cs
- CatalogPartCollection.cs
- EndpointDiscoveryElement.cs
- SqlUserDefinedTypeAttribute.cs
- DocumentViewerConstants.cs
- SqlRowUpdatedEvent.cs
- BindingsCollection.cs
- HostUtils.cs
- BamlBinaryWriter.cs
- EmptyEnumerator.cs
- UInt16Storage.cs
- Knowncolors.cs
- MimeTypeMapper.cs
- TextRunCache.cs
- Buffer.cs
- SafeArrayRankMismatchException.cs
- ViewBox.cs
- ExecutionContext.cs
- ExitEventArgs.cs
- WebControlAdapter.cs
- MDIWindowDialog.cs
- GeneralTransform.cs
- HandledEventArgs.cs
- WSFederationHttpBindingElement.cs
- RequestContext.cs
- SecurityResources.cs
- CorrelationService.cs
- WarningException.cs
- xsdvalidator.cs
- MeasureData.cs
- _CookieModule.cs
- WhiteSpaceTrimStringConverter.cs
- DataListGeneralPage.cs
- HttpFileCollectionWrapper.cs
- Size.cs
- SqlException.cs
- PseudoWebRequest.cs
- ListViewEditEventArgs.cs
- RenderData.cs
- DataContractSet.cs
- SafeHandles.cs
- NoneExcludedImageIndexConverter.cs
- Persist.cs
- BinaryParser.cs
- SecondaryViewProvider.cs
- NoneExcludedImageIndexConverter.cs
- Span.cs
- DocumentViewerHelper.cs
- SwitchCase.cs
- AttachedPropertyMethodSelector.cs
- EntityTypeEmitter.cs
- ProcessHostServerConfig.cs
- EditBehavior.cs
- OrthographicCamera.cs
- ImageDrawing.cs
- TripleDES.cs
- NullableDoubleMinMaxAggregationOperator.cs
- FrameworkRichTextComposition.cs
- DefaultValueAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- GlyphRunDrawing.cs
- TempFiles.cs
- ListSourceHelper.cs
- _OverlappedAsyncResult.cs
- COM2ExtendedUITypeEditor.cs
- FrameDimension.cs
- SByte.cs
- CodeDomComponentSerializationService.cs
- TypeResolver.cs
- HttpGetServerProtocol.cs
- StandardTransformFactory.cs
- XhtmlBasicCalendarAdapter.cs
- WmlPanelAdapter.cs
- EncryptedPackageFilter.cs
- SoapReflectionImporter.cs
- UpdateExpressionVisitor.cs
- DataBoundControlAdapter.cs
- DrawingAttributesDefaultValueFactory.cs
- DataGridViewLayoutData.cs
- PngBitmapEncoder.cs
- IisTraceWebEventProvider.cs
- HttpProfileBase.cs
- ChannelServices.cs
- X500Name.cs
- PathTooLongException.cs
- CustomWebEventKey.cs
- Dispatcher.cs
- FtpWebResponse.cs
- BindingNavigatorDesigner.cs
- TextEndOfParagraph.cs
- CodePageUtils.cs
- configsystem.cs
- XmlSchemaInferenceException.cs
- ViewGenResults.cs
- CharacterShapingProperties.cs