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
- ObjectListCommandsPage.cs
- ConnectionProviderAttribute.cs
- GeneralTransform2DTo3DTo2D.cs
- RemotingAttributes.cs
- UrlMapping.cs
- FontUnitConverter.cs
- ScrollViewer.cs
- ServiceModelExtensionCollectionElement.cs
- HttpBrowserCapabilitiesBase.cs
- CompletionCallbackWrapper.cs
- FunctionQuery.cs
- PathFigureCollectionConverter.cs
- GenericUriParser.cs
- CqlParser.cs
- HandleRef.cs
- ColorContext.cs
- ListBoxItemAutomationPeer.cs
- Byte.cs
- EndpointBehaviorElement.cs
- SecurityHeaderElementInferenceEngine.cs
- XPathDocumentNavigator.cs
- MessagePropertyAttribute.cs
- SoapFault.cs
- FaultConverter.cs
- Errors.cs
- Configuration.cs
- CfgSemanticTag.cs
- IfAction.cs
- XmlUtil.cs
- PreservationFileReader.cs
- ISAPIRuntime.cs
- AsmxEndpointPickerExtension.cs
- Helpers.cs
- DetailsViewDeleteEventArgs.cs
- NullableDoubleSumAggregationOperator.cs
- DictionaryBase.cs
- ChtmlLinkAdapter.cs
- ChannelBinding.cs
- ProfilePropertyNameValidator.cs
- DrawingGroup.cs
- TiffBitmapDecoder.cs
- CmsUtils.cs
- Rotation3DKeyFrameCollection.cs
- XmlDictionaryReaderQuotasElement.cs
- UpdatePanel.cs
- GlobalId.cs
- XLinq.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- SmiEventStream.cs
- ViewGenerator.cs
- BookmarkEventArgs.cs
- ProcessModuleCollection.cs
- DoubleLinkListEnumerator.cs
- WorkflowWebService.cs
- TransformerInfoCollection.cs
- SqlRecordBuffer.cs
- SystemInformation.cs
- Content.cs
- ComponentSerializationService.cs
- SrgsText.cs
- TimeSpan.cs
- InputProcessorProfiles.cs
- CacheChildrenQuery.cs
- ChtmlTextWriter.cs
- tibetanshape.cs
- IItemContainerGenerator.cs
- DataRowCollection.cs
- NativeMethods.cs
- DeclaredTypeValidatorAttribute.cs
- TextLineResult.cs
- XMLUtil.cs
- NotifyCollectionChangedEventArgs.cs
- StrokeNodeOperations.cs
- TextSpanModifier.cs
- GACIdentityPermission.cs
- StatusBarItem.cs
- SelectorItemAutomationPeer.cs
- ExpressionBuilder.cs
- AmbientProperties.cs
- QueryStringParameter.cs
- SymDocumentType.cs
- XmlnsCache.cs
- MembershipSection.cs
- XamlSerializer.cs
- ToolStripGripRenderEventArgs.cs
- WebPartConnectionsCancelVerb.cs
- GroupQuery.cs
- FileChangesMonitor.cs
- AnimatedTypeHelpers.cs
- ProviderConnectionPoint.cs
- ProcessProtocolHandler.cs
- XsdDuration.cs
- TPLETWProvider.cs
- DesignerCalendarAdapter.cs
- RemoteHelper.cs
- X509LogoTypeExtension.cs
- ItemsChangedEventArgs.cs
- ServiceCredentials.cs
- XamlStream.cs
- DoubleConverter.cs