Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Net / System / Net / Configuration / PerformanceCountersElement.cs / 1 / 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
- CodeDefaultValueExpression.cs
- XmlJsonWriter.cs
- PathStreamGeometryContext.cs
- PathSegmentCollection.cs
- dtdvalidator.cs
- ExpressionBinding.cs
- FileCodeGroup.cs
- CodeDirectionExpression.cs
- AssemblyBuilder.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ContextBase.cs
- FileController.cs
- ViewBase.cs
- CharacterBuffer.cs
- ConfigXmlSignificantWhitespace.cs
- FtpCachePolicyElement.cs
- CookielessHelper.cs
- VisualStyleInformation.cs
- MessagePropertyAttribute.cs
- TextRange.cs
- SafeBitVector32.cs
- FileChangesMonitor.cs
- Composition.cs
- PersonalizationProviderCollection.cs
- KeyGestureConverter.cs
- ObjectListCommandEventArgs.cs
- FrameworkElement.cs
- StylusButton.cs
- ViewBase.cs
- WindowsIdentity.cs
- DoubleAnimation.cs
- OnOperation.cs
- SqlCacheDependencyDatabaseCollection.cs
- TextView.cs
- TableChangeProcessor.cs
- ScrollData.cs
- BindingSource.cs
- DataServiceRequest.cs
- PropertyPath.cs
- CodeDefaultValueExpression.cs
- InputMethodStateTypeInfo.cs
- AdornerHitTestResult.cs
- HwndHost.cs
- DateTimeConverter2.cs
- Rect.cs
- DynamicValidatorEventArgs.cs
- LinkButton.cs
- DataObjectFieldAttribute.cs
- DrawListViewSubItemEventArgs.cs
- EdmError.cs
- WebControl.cs
- XmlCharCheckingReader.cs
- DynamicValueConverter.cs
- ServiceMetadataExtension.cs
- OpCopier.cs
- WebPartDisplayModeEventArgs.cs
- AutomationProperties.cs
- ExpressionNode.cs
- Update.cs
- SqlTypeSystemProvider.cs
- KernelTypeValidation.cs
- HtmlTableCell.cs
- GenericXmlSecurityTokenAuthenticator.cs
- Transactions.cs
- UIHelper.cs
- MatrixConverter.cs
- CodeAccessPermission.cs
- __FastResourceComparer.cs
- PersistenceTypeAttribute.cs
- SqlConnectionFactory.cs
- DrawingImage.cs
- Command.cs
- Pen.cs
- MemoryRecordBuffer.cs
- SafeLocalMemHandle.cs
- ObjectDisposedException.cs
- AmbiguousMatchException.cs
- WebPartDisplayModeCancelEventArgs.cs
- CachingHintValidation.cs
- ProfileSection.cs
- TabOrder.cs
- IdentifierService.cs
- ConstraintManager.cs
- TableRowGroup.cs
- TcpStreams.cs
- DesignTimeXamlWriter.cs
- MediaContextNotificationWindow.cs
- RegexNode.cs
- GridErrorDlg.cs
- XomlCompilerParameters.cs
- ObjectDataSource.cs
- ActivityTypeDesigner.xaml.cs
- XmlDocumentType.cs
- DiagnosticTraceSource.cs
- StringBlob.cs
- FloaterParaClient.cs
- ZipIOModeEnforcingStream.cs
- HttpGetClientProtocol.cs
- FrameAutomationPeer.cs
- ThrowHelper.cs