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
- MessageOperationFormatter.cs
- ObjectItemAttributeAssemblyLoader.cs
- DefaultMemberAttribute.cs
- ToolStripDropDownButton.cs
- ThrowHelper.cs
- InheritanceContextChangedEventManager.cs
- ContainerFilterService.cs
- WebPartConnectionsConfigureVerb.cs
- GridViewPageEventArgs.cs
- IsolatedStorageFilePermission.cs
- DrawingAttributesDefaultValueFactory.cs
- SmiMetaDataProperty.cs
- MemoryResponseElement.cs
- _Semaphore.cs
- CellQuery.cs
- DropShadowBitmapEffect.cs
- WmlListAdapter.cs
- RelationHandler.cs
- ObjectDataSourceWizardForm.cs
- TextParaLineResult.cs
- DictionaryItemsCollection.cs
- IEnumerable.cs
- ISSmlParser.cs
- MimeMapping.cs
- XmlSchemaAny.cs
- StylusOverProperty.cs
- Properties.cs
- ToolStripItemBehavior.cs
- CookieHandler.cs
- SqlXmlStorage.cs
- UpdateCommand.cs
- XamlBuildTaskServices.cs
- SettingsPropertyValue.cs
- ToolStripStatusLabel.cs
- DbRetry.cs
- ConditionCollection.cs
- InstancePersistenceException.cs
- XhtmlBasicObjectListAdapter.cs
- ProcessHostConfigUtils.cs
- ExpressionTable.cs
- NamedPipeTransportSecurityElement.cs
- autovalidator.cs
- OleDbInfoMessageEvent.cs
- ChildTable.cs
- TypeTypeConverter.cs
- ApplicationBuildProvider.cs
- ArrayConverter.cs
- MergeFilterQuery.cs
- EventRoute.cs
- TextDecoration.cs
- DateBoldEvent.cs
- CompositeFontFamily.cs
- PropertyGeneratedEventArgs.cs
- XmlException.cs
- ClickablePoint.cs
- DataGridToolTip.cs
- COM2Enum.cs
- ClosableStream.cs
- VerificationAttribute.cs
- CryptoHelper.cs
- PageWrapper.cs
- EpmSourceTree.cs
- DataKeyCollection.cs
- JapaneseCalendar.cs
- ItemsControlAutomationPeer.cs
- Propagator.cs
- ArrayTypeMismatchException.cs
- NavigationCommands.cs
- UnmanagedBitmapWrapper.cs
- EmbossBitmapEffect.cs
- SchemaCollectionPreprocessor.cs
- RoutedEventHandlerInfo.cs
- DbConnectionClosed.cs
- FixedDSBuilder.cs
- GuidTagList.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ObjectQuery_EntitySqlExtensions.cs
- SafePEFileHandle.cs
- Context.cs
- SqlDataSourceSelectingEventArgs.cs
- Transform3DCollection.cs
- DataSourceSerializationException.cs
- ObjectDataSourceEventArgs.cs
- FrugalList.cs
- CachedFontFace.cs
- SerializationFieldInfo.cs
- ApplicationId.cs
- AggregatePushdown.cs
- XmlConverter.cs
- ManifestSignatureInformation.cs
- DataPagerFieldCollection.cs
- SerialErrors.cs
- Model3DGroup.cs
- WhitespaceRuleReader.cs
- TreeIterator.cs
- AvtEvent.cs
- BuilderInfo.cs
- ApplicationDirectoryMembershipCondition.cs
- TextWriterTraceListener.cs
- EventDescriptor.cs