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
- BackgroundFormatInfo.cs
- StateRuntime.cs
- HashHelper.cs
- safesecurityhelperavalon.cs
- DefaultDiscoveryServiceExtension.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SafeNativeMethods.cs
- WebServiceTypeData.cs
- TypeExtensionConverter.cs
- MenuItemStyleCollectionEditor.cs
- DiagnosticsConfiguration.cs
- SqlRowUpdatingEvent.cs
- XamlInterfaces.cs
- ChangeNode.cs
- SaveFileDialog.cs
- EffectiveValueEntry.cs
- DoubleConverter.cs
- FlatButtonAppearance.cs
- SqlDataSourceConfigureSortForm.cs
- NonVisualControlAttribute.cs
- XmlImplementation.cs
- EntityFrameworkVersions.cs
- _CommandStream.cs
- EDesignUtil.cs
- BuildManagerHost.cs
- StrokeCollectionDefaultValueFactory.cs
- ToolZone.cs
- Substitution.cs
- Timer.cs
- WindowsToolbar.cs
- Section.cs
- processwaithandle.cs
- IERequestCache.cs
- RoleManagerSection.cs
- XmlSchemaResource.cs
- ArrayTypeMismatchException.cs
- MemberBinding.cs
- BitmapScalingModeValidation.cs
- CapabilitiesPattern.cs
- EdmRelationshipRoleAttribute.cs
- ImageClickEventArgs.cs
- HandleExceptionArgs.cs
- CurrencyManager.cs
- Span.cs
- PageEventArgs.cs
- TableColumnCollection.cs
- ContextMenu.cs
- CodeMemberField.cs
- CharAnimationUsingKeyFrames.cs
- CollaborationHelperFunctions.cs
- ProfileBuildProvider.cs
- PageAsyncTaskManager.cs
- EditorServiceContext.cs
- HorizontalAlignConverter.cs
- XamlToRtfWriter.cs
- odbcmetadatacollectionnames.cs
- XmlSchemaSubstitutionGroup.cs
- UnsafeNativeMethods.cs
- StringToken.cs
- XmlElementList.cs
- DocumentViewerBase.cs
- ConditionBrowserDialog.cs
- FigureParagraph.cs
- PenThreadWorker.cs
- LogStore.cs
- WmlTextViewAdapter.cs
- PerformanceCounterPermission.cs
- DataGridViewColumnTypeEditor.cs
- JsonByteArrayDataContract.cs
- ConnectionConsumerAttribute.cs
- QueryTask.cs
- DuplicateWaitObjectException.cs
- ApplicationInfo.cs
- ControlLocalizer.cs
- StreamMarshaler.cs
- DataGridViewCellMouseEventArgs.cs
- X509ChainElement.cs
- DataServiceProcessingPipelineEventArgs.cs
- XmlDataLoader.cs
- ContractAdapter.cs
- Mapping.cs
- MessageDecoder.cs
- HttpPostLocalhostServerProtocol.cs
- ScriptModule.cs
- ImageFormat.cs
- SigningCredentials.cs
- SchemaContext.cs
- ExtensionDataReader.cs
- XmlStringTable.cs
- CalendarDateChangedEventArgs.cs
- GlobalizationSection.cs
- PropertyStore.cs
- UpdateDelegates.Generated.cs
- TraceSwitch.cs
- RoleManagerSection.cs
- SqlFormatter.cs
- FormViewCommandEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- DataGridViewColumnHeaderCell.cs
- SymbolUsageManager.cs