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
- ToolStripProgressBar.cs
- ResolvedKeyFrameEntry.cs
- XsdBuilder.cs
- TabControlAutomationPeer.cs
- ContentPosition.cs
- SetterBase.cs
- CLSCompliantAttribute.cs
- FormViewInsertedEventArgs.cs
- XPathCompileException.cs
- CommentAction.cs
- PeerContact.cs
- FileStream.cs
- SettingsProperty.cs
- RoleManagerSection.cs
- AbsoluteQuery.cs
- TimelineCollection.cs
- ChtmlTextBoxAdapter.cs
- TokenBasedSetEnumerator.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Schema.cs
- Hashtable.cs
- PointAnimationClockResource.cs
- Array.cs
- ComPlusServiceHost.cs
- TemplateKey.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- ConstraintCollection.cs
- PropertyChangeTracker.cs
- HwndMouseInputProvider.cs
- SecuritySessionFilter.cs
- RequestCache.cs
- TransformProviderWrapper.cs
- Button.cs
- NetSectionGroup.cs
- PeerDuplexChannel.cs
- ConfigurationManagerHelper.cs
- WebPart.cs
- ProjectionPath.cs
- DbUpdateCommandTree.cs
- ResizeGrip.cs
- StateWorkerRequest.cs
- TypeInitializationException.cs
- RecognizerInfo.cs
- XmlWriterDelegator.cs
- BasicKeyConstraint.cs
- DataServiceRequestException.cs
- ConfigurationLockCollection.cs
- GeometryModel3D.cs
- SecurityElement.cs
- SymmetricCryptoHandle.cs
- PropertyKey.cs
- _NTAuthentication.cs
- CheckBoxBaseAdapter.cs
- XmlComment.cs
- SamlAudienceRestrictionCondition.cs
- Parameter.cs
- XslUrlEditor.cs
- IntranetCredentialPolicy.cs
- ConnectionPoolManager.cs
- Char.cs
- ExpressionEditorSheet.cs
- HuffModule.cs
- ConfigurationManagerHelper.cs
- DBParameter.cs
- ADConnectionHelper.cs
- TraceContextEventArgs.cs
- Convert.cs
- EditBehavior.cs
- XmlSchemaSimpleContentExtension.cs
- FormCollection.cs
- DataSourceCache.cs
- EncryptRequest.cs
- XmlSchemaAnyAttribute.cs
- AmbientProperties.cs
- PublisherIdentityPermission.cs
- SubpageParagraph.cs
- UriSchemeKeyedCollection.cs
- AssociatedControlConverter.cs
- ExpressionEvaluator.cs
- ResourcesBuildProvider.cs
- ConfigXmlComment.cs
- Base64Decoder.cs
- XpsFilter.cs
- TransformDescriptor.cs
- ApplicationActivator.cs
- Style.cs
- Trace.cs
- WebHttpSecurityModeHelper.cs
- SafeFileMappingHandle.cs
- HttpResponseHeader.cs
- NestPullup.cs
- FilterEventArgs.cs
- KeyboardNavigation.cs
- ObjectHandle.cs
- XmlSchemaRedefine.cs
- ContentValidator.cs
- SchemaNotation.cs
- _emptywebproxy.cs
- RuntimeConfig.cs
- CommonObjectSecurity.cs