Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PropertyTabChangedEvent.cs
- ScriptRef.cs
- ListItem.cs
- SoapExtensionStream.cs
- WeakHashtable.cs
- ServicePointManagerElement.cs
- WebEventTraceProvider.cs
- Symbol.cs
- HotSpotCollection.cs
- Style.cs
- ColumnResizeAdorner.cs
- RowTypePropertyElement.cs
- List.cs
- ParagraphVisual.cs
- FlowPosition.cs
- BufferedWebEventProvider.cs
- ZipIORawDataFileBlock.cs
- NTAccount.cs
- ScriptControlManager.cs
- SelectionPattern.cs
- XmlSerializerOperationBehavior.cs
- WebServiceEnumData.cs
- _HelperAsyncResults.cs
- TextTreeInsertElementUndoUnit.cs
- SourceFilter.cs
- ZoomPercentageConverter.cs
- DependencyObjectProvider.cs
- ConfigurationStrings.cs
- EntityViewGenerator.cs
- DataServiceQueryOfT.cs
- InvokeMethodActivity.cs
- PrintEvent.cs
- BrowsableAttribute.cs
- Annotation.cs
- LayoutTableCell.cs
- Math.cs
- CompiledELinqQueryState.cs
- ExceptionDetail.cs
- FlowDocument.cs
- RegexTree.cs
- HuffmanTree.cs
- CodePageUtils.cs
- WebBrowserNavigatingEventHandler.cs
- ZoneIdentityPermission.cs
- EntityObject.cs
- SqlFileStream.cs
- TriggerActionCollection.cs
- BaseCodeDomTreeGenerator.cs
- InputQueueChannelAcceptor.cs
- SafeSecurityHandles.cs
- EntityCommand.cs
- FontDifferentiator.cs
- ProcessThreadCollection.cs
- BaseParaClient.cs
- EnumBuilder.cs
- Merger.cs
- DataQuery.cs
- FontFamilyConverter.cs
- AuthenticationModuleElementCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- CompModSwitches.cs
- SecurityTokenValidationException.cs
- Int32CollectionConverter.cs
- ExceptionUtil.cs
- SecurityPermission.cs
- WebBrowser.cs
- OrCondition.cs
- _KerberosClient.cs
- XmlCodeExporter.cs
- PropertyChangeTracker.cs
- MultitargetUtil.cs
- XmlQueryCardinality.cs
- Parser.cs
- TdsParserStaticMethods.cs
- _SslState.cs
- Attributes.cs
- FactoryId.cs
- DataListItemEventArgs.cs
- Convert.cs
- RuntimeConfig.cs
- Style.cs
- ReversePositionQuery.cs
- SqlClientFactory.cs
- DataServiceQueryProvider.cs
- SchemaImporter.cs
- PackageProperties.cs
- CodeTypeReferenceExpression.cs
- InstallerTypeAttribute.cs
- StaticDataManager.cs
- AvTraceFormat.cs
- NamedObjectList.cs
- BaseDataList.cs
- TreeViewImageIndexConverter.cs
- XmlEncodedRawTextWriter.cs
- StringAnimationUsingKeyFrames.cs
- ThicknessKeyFrameCollection.cs
- EntityDescriptor.cs
- XmlCharCheckingReader.cs
- TreeNodeSelectionProcessor.cs
- WindowsPen.cs