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
- QuaternionAnimationBase.cs
- ContractHandle.cs
- HtmlInputSubmit.cs
- ProviderMetadataCachedInformation.cs
- RowToFieldTransformer.cs
- COM2PictureConverter.cs
- PropertyToken.cs
- AppSecurityManager.cs
- HtmlTableRow.cs
- Adorner.cs
- _NativeSSPI.cs
- EntityDataSource.cs
- ImportContext.cs
- FormViewUpdatedEventArgs.cs
- TagElement.cs
- WhitespaceSignificantCollectionAttribute.cs
- DiscoveryDocumentLinksPattern.cs
- ResourcesGenerator.cs
- WebPartMinimizeVerb.cs
- ComponentEditorPage.cs
- SHA1CryptoServiceProvider.cs
- AttributeXamlType.cs
- WindowsGrip.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AdornerLayer.cs
- RestHandlerFactory.cs
- ListItemParagraph.cs
- DataBoundControlParameterTarget.cs
- ProtocolsSection.cs
- ThreadPool.cs
- SecurityPolicySection.cs
- CodeRegionDirective.cs
- InvalidCastException.cs
- CodeMemberMethod.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ConfigXmlElement.cs
- XomlCompilerParameters.cs
- InvokeSchedule.cs
- CalculatedColumn.cs
- LineMetrics.cs
- FlowDecisionLabelFeature.cs
- CompositeFontFamily.cs
- TextElementEnumerator.cs
- BindingBase.cs
- DataObjectAttribute.cs
- HeaderPanel.cs
- ListCardsInFileRequest.cs
- FamilyMapCollection.cs
- wgx_sdk_version.cs
- XmlNavigatorFilter.cs
- IntPtr.cs
- ControlTemplate.cs
- SystemEvents.cs
- Queue.cs
- AssemblyAttributes.cs
- StringSource.cs
- Expressions.cs
- ComponentConverter.cs
- xmlsaver.cs
- TimeIntervalCollection.cs
- BatchServiceHost.cs
- WebHeaderCollection.cs
- sqlser.cs
- AssemblyAssociatedContentFileAttribute.cs
- BamlLocalizableResourceKey.cs
- Queue.cs
- InvokeWebService.cs
- ChannelToken.cs
- TypeConverter.cs
- BindingBase.cs
- RetrieveVirtualItemEventArgs.cs
- CodeLabeledStatement.cs
- ServiceRouteHandler.cs
- FormViewModeEventArgs.cs
- ComplexType.cs
- QfeChecker.cs
- EmissiveMaterial.cs
- PagesChangedEventArgs.cs
- IteratorFilter.cs
- BinaryObjectWriter.cs
- AssociationTypeEmitter.cs
- ConfigurationSchemaErrors.cs
- CorrelationHandle.cs
- XmlDictionaryWriter.cs
- MetadataArtifactLoader.cs
- StateItem.cs
- SendMailErrorEventArgs.cs
- TemplateBindingExpressionConverter.cs
- SqlInternalConnectionSmi.cs
- CachedBitmap.cs
- Vector3DAnimationBase.cs
- XmlDeclaration.cs
- IPEndPointCollection.cs
- XmlMemberMapping.cs
- ServerValidateEventArgs.cs
- WinInetCache.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- XamlPointCollectionSerializer.cs
- ObjectDataSourceFilteringEventArgs.cs
- RepeaterCommandEventArgs.cs