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
- PerfService.cs
- ConfigXmlSignificantWhitespace.cs
- SelectionWordBreaker.cs
- ImageFormat.cs
- Int32CAMarshaler.cs
- ZipIOLocalFileBlock.cs
- ObjectStateEntryDbDataRecord.cs
- DesignerWithHeader.cs
- NotFiniteNumberException.cs
- ConstantSlot.cs
- EnumerableRowCollectionExtensions.cs
- NameTable.cs
- DataList.cs
- RedBlackList.cs
- CodeDomDesignerLoader.cs
- LongTypeConverter.cs
- WindowCollection.cs
- ContactManager.cs
- MonthChangedEventArgs.cs
- WriteFileContext.cs
- SqlInternalConnection.cs
- CorePropertiesFilter.cs
- WinFormsSecurity.cs
- GeneralTransform2DTo3DTo2D.cs
- ChainedAsyncResult.cs
- XhtmlConformanceSection.cs
- DesignerVerb.cs
- EventHandlersStore.cs
- VisualStateManager.cs
- IssuedTokensHeader.cs
- CacheChildrenQuery.cs
- Int64KeyFrameCollection.cs
- CryptoKeySecurity.cs
- TextParagraph.cs
- Script.cs
- XmlSerializationWriter.cs
- RectangleHotSpot.cs
- SqlWriter.cs
- ToolStripPanelDesigner.cs
- GregorianCalendarHelper.cs
- RoleService.cs
- ByteStream.cs
- AssemblySettingAttributes.cs
- RemotingConfiguration.cs
- IntSecurity.cs
- ObjRef.cs
- PlainXmlWriter.cs
- SpecialNameAttribute.cs
- EditorPartDesigner.cs
- XmlEncApr2001.cs
- Button.cs
- DataSourceHelper.cs
- RowsCopiedEventArgs.cs
- ReferencedCollectionType.cs
- WindowsRegion.cs
- MsmqInputChannel.cs
- ProcessInfo.cs
- BitmapFrameEncode.cs
- TextReader.cs
- HtmlValidationSummaryAdapter.cs
- Rijndael.cs
- ResourceReferenceExpressionConverter.cs
- SslStreamSecurityElement.cs
- WsatTransactionFormatter.cs
- SQLGuidStorage.cs
- Code.cs
- CoreSwitches.cs
- DataGridTablesFactory.cs
- ReadingWritingEntityEventArgs.cs
- wgx_commands.cs
- TrackingLocation.cs
- StaticFileHandler.cs
- Span.cs
- Pen.cs
- PerformanceCounterPermissionEntryCollection.cs
- SqlXmlStorage.cs
- XmlIncludeAttribute.cs
- ControlTemplate.cs
- HttpContextServiceHost.cs
- CallbackValidatorAttribute.cs
- BackStopAuthenticationModule.cs
- CollectionChangedEventManager.cs
- CollectionViewProxy.cs
- MouseGestureConverter.cs
- BrowsableAttribute.cs
- SamlAuthorizationDecisionStatement.cs
- ToolboxItemCollection.cs
- HierarchicalDataTemplate.cs
- RegistryPermission.cs
- EDesignUtil.cs
- BulletedList.cs
- MD5CryptoServiceProvider.cs
- BufferedGraphicsContext.cs
- SoapSchemaMember.cs
- SessionStateItemCollection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DispatcherProcessingDisabled.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- DispatcherHookEventArgs.cs
- DataMisalignedException.cs