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
- PriorityItem.cs
- shaperfactoryquerycacheentry.cs
- OracleNumber.cs
- Typography.cs
- MethodRental.cs
- SoapWriter.cs
- BitmapSizeOptions.cs
- ClientSession.cs
- RelativeSource.cs
- ReflectionUtil.cs
- MaskInputRejectedEventArgs.cs
- BufferedWebEventProvider.cs
- Form.cs
- GlobalProxySelection.cs
- ApplicationManager.cs
- MergeFilterQuery.cs
- EllipseGeometry.cs
- DbXmlEnabledProviderManifest.cs
- ProvidersHelper.cs
- Maps.cs
- ObjectPersistData.cs
- ValueSerializerAttribute.cs
- DropDownList.cs
- LinkLabel.cs
- CategoryNameCollection.cs
- SchemaCollectionCompiler.cs
- Parameter.cs
- PreloadHost.cs
- ProfilePropertyMetadata.cs
- MarkupExtensionReturnTypeAttribute.cs
- RemoteWebConfigurationHostStream.cs
- WebPartCancelEventArgs.cs
- XamlParser.cs
- UInt16Storage.cs
- ClientCredentialsSecurityTokenManager.cs
- ShaderRenderModeValidation.cs
- MailAddress.cs
- XmlCountingReader.cs
- AppSettingsExpressionBuilder.cs
- ImageFormat.cs
- DeclarativeCatalogPart.cs
- AQNBuilder.cs
- HttpRequestCacheValidator.cs
- WebPartTransformerAttribute.cs
- FusionWrap.cs
- NegotiateStream.cs
- PointCollectionValueSerializer.cs
- XmlSerializerVersionAttribute.cs
- ResourceDisplayNameAttribute.cs
- NamespaceList.cs
- DbException.cs
- SupportedAddressingMode.cs
- GestureRecognitionResult.cs
- columnmapkeybuilder.cs
- ParallelQuery.cs
- DataControlField.cs
- FontDifferentiator.cs
- EditorPartDesigner.cs
- XmlQuerySequence.cs
- BitmapVisualManager.cs
- SourceFileBuildProvider.cs
- AddValidationError.cs
- NextPreviousPagerField.cs
- NetTcpBinding.cs
- Mouse.cs
- SqlRemoveConstantOrderBy.cs
- SqlWebEventProvider.cs
- NamedPipeTransportSecurity.cs
- StringComparer.cs
- SessionEndedEventArgs.cs
- DispatchWrapper.cs
- RangeBase.cs
- GraphicsState.cs
- CompositeFontParser.cs
- NetworkInformationPermission.cs
- MetadataCollection.cs
- ContextQuery.cs
- ShaderEffect.cs
- SQLString.cs
- QuaternionValueSerializer.cs
- SetStoryboardSpeedRatio.cs
- WindowsRegion.cs
- ModuleConfigurationInfo.cs
- OleDbPropertySetGuid.cs
- IApplicationTrustManager.cs
- ControlBindingsCollection.cs
- CodeAccessPermission.cs
- NotifyInputEventArgs.cs
- PolicyStatement.cs
- ArrayItemValue.cs
- SchemaCollectionCompiler.cs
- BitmapFrameEncode.cs
- AutomationPropertyInfo.cs
- MSAAWinEventWrap.cs
- ParamArrayAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- CodeDomDesignerLoader.cs
- IsolatedStorage.cs
- DataGridColumnHeaderAutomationPeer.cs
- MatrixUtil.cs