Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PeerUnsafeNativeCryptMethods.cs
- WindowsListViewGroup.cs
- Axis.cs
- DocumentXPathNavigator.cs
- StateMachineSubscriptionManager.cs
- RegexCode.cs
- DataGridAutoFormat.cs
- XmlConvert.cs
- DataObjectEventArgs.cs
- Control.cs
- XamlPathDataSerializer.cs
- CatalogPart.cs
- XmlElementAttribute.cs
- OdbcReferenceCollection.cs
- TypeResolver.cs
- BitmapCodecInfo.cs
- FloaterBaseParagraph.cs
- BamlResourceContent.cs
- HuffmanTree.cs
- EndOfStreamException.cs
- ToolboxItemFilterAttribute.cs
- LicenseProviderAttribute.cs
- SqlServer2KCompatibilityAnnotation.cs
- StylusDevice.cs
- HtmlValidatorAdapter.cs
- CommonDialog.cs
- Helper.cs
- HttpClientProtocol.cs
- RuntimeArgumentHandle.cs
- TriggerCollection.cs
- MatrixStack.cs
- SQLInt16.cs
- HtmlControlDesigner.cs
- _SslSessionsCache.cs
- TopClause.cs
- GenericXmlSecurityToken.cs
- FixedPageProcessor.cs
- ChtmlTextWriter.cs
- ProgressBarBrushConverter.cs
- QueryResultOp.cs
- AppDomainResourcePerfCounters.cs
- MatrixCamera.cs
- ExclusiveCanonicalizationTransform.cs
- HelpOperationInvoker.cs
- MenuItemCollectionEditor.cs
- localization.cs
- CompressedStack.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Tag.cs
- SqlCacheDependencyDatabase.cs
- OperandQuery.cs
- infer.cs
- Int32CollectionConverter.cs
- processwaithandle.cs
- SqlDataSourceCache.cs
- Aes.cs
- ColorMatrix.cs
- HttpRawResponse.cs
- ConstructorBuilder.cs
- PropertyToken.cs
- Tuple.cs
- AnimatedTypeHelpers.cs
- XmlWellformedWriterHelpers.cs
- TargetException.cs
- XmlMtomReader.cs
- ResolveMatches11.cs
- SqlFunctionAttribute.cs
- ProxyFragment.cs
- UrlAuthFailedErrorFormatter.cs
- OdbcStatementHandle.cs
- RichTextBoxAutomationPeer.cs
- RequestResponse.cs
- WindowsRegion.cs
- ListenerElementsCollection.cs
- XMLSchema.cs
- Int32AnimationUsingKeyFrames.cs
- XmlNullResolver.cs
- XmlWriterSettings.cs
- MimeXmlImporter.cs
- CopyNamespacesAction.cs
- ProtocolsConfigurationEntry.cs
- TemplateComponentConnector.cs
- UndoManager.cs
- ListSortDescriptionCollection.cs
- DocumentsTrace.cs
- KeyValueSerializer.cs
- WorkflowRuntimeService.cs
- CompModSwitches.cs
- CFStream.cs
- SqlUserDefinedTypeAttribute.cs
- AssemblyCache.cs
- IndependentAnimationStorage.cs
- Shape.cs
- HtmlEmptyTagControlBuilder.cs
- SqlBulkCopy.cs
- LocalizableResourceBuilder.cs
- Bidi.cs
- nulltextnavigator.cs
- LinkTarget.cs
- UnhandledExceptionEventArgs.cs