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
- UseManagedPresentationBindingElementImporter.cs
- SmtpLoginAuthenticationModule.cs
- DbConnectionInternal.cs
- LostFocusEventManager.cs
- TextOutput.cs
- SignatureDescription.cs
- ErrorFormatter.cs
- WebEvents.cs
- RegexNode.cs
- GeneralTransform3DTo2DTo3D.cs
- IdentitySection.cs
- AxHost.cs
- UndoManager.cs
- ValidationUtility.cs
- COM2ExtendedUITypeEditor.cs
- DynamicField.cs
- PropertyGridView.cs
- SizeConverter.cs
- HttpProtocolImporter.cs
- IndexOutOfRangeException.cs
- BulletDecorator.cs
- Base64Encoding.cs
- DataServiceQueryContinuation.cs
- OleDbException.cs
- ActiveXHost.cs
- Rotation3DAnimationBase.cs
- SystemException.cs
- WinEventTracker.cs
- Matrix3DConverter.cs
- Semaphore.cs
- GenerateScriptTypeAttribute.cs
- RayHitTestParameters.cs
- VersionedStream.cs
- DataGridViewButtonColumn.cs
- CoTaskMemUnicodeSafeHandle.cs
- SqlTriggerAttribute.cs
- CharacterBufferReference.cs
- AuthenticationConfig.cs
- MenuCommandService.cs
- RadioButtonList.cs
- DataGridViewAutoSizeModeEventArgs.cs
- _HTTPDateParse.cs
- CollectionAdapters.cs
- ControlBindingsCollection.cs
- MulticastNotSupportedException.cs
- SatelliteContractVersionAttribute.cs
- PrimitiveSchema.cs
- PeerObject.cs
- ListViewInsertionMark.cs
- ControlCollection.cs
- CleanUpVirtualizedItemEventArgs.cs
- XamlToRtfWriter.cs
- NativeMethodsCLR.cs
- XmlSchemaImport.cs
- Win32Exception.cs
- MaxSessionCountExceededException.cs
- AuthenticationSchemesHelper.cs
- SignatureSummaryDialog.cs
- AudioStateChangedEventArgs.cs
- ControlCollection.cs
- GeometryGroup.cs
- MultiSelectRootGridEntry.cs
- DbQueryCommandTree.cs
- translator.cs
- SoapReflectionImporter.cs
- ListViewItemCollectionEditor.cs
- PolyLineSegmentFigureLogic.cs
- WindowsPen.cs
- ExpressionTextBox.xaml.cs
- CompressionTransform.cs
- MenuCommandService.cs
- Substitution.cs
- ControlBuilderAttribute.cs
- ConstraintManager.cs
- DbMetaDataCollectionNames.cs
- DataError.cs
- IdentityNotMappedException.cs
- Decoder.cs
- MessageHeaderDescriptionCollection.cs
- ArithmeticException.cs
- Utils.cs
- ControlPaint.cs
- PointCollection.cs
- HtmlTable.cs
- QilGeneratorEnv.cs
- InstanceDataCollectionCollection.cs
- EncryptedKeyIdentifierClause.cs
- XmlSchemaAttribute.cs
- LinqDataSourceSelectEventArgs.cs
- HelpKeywordAttribute.cs
- ConfigurationSectionGroup.cs
- XmlAttributes.cs
- PrePostDescendentsWalker.cs
- CodeComment.cs
- UnmanagedBitmapWrapper.cs
- ApplicationId.cs
- FindCriteriaCD1.cs
- ContentValidator.cs
- RegexTree.cs
- SchemaTableOptionalColumn.cs