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
- ModulesEntry.cs
- StateItem.cs
- ComponentEditorPage.cs
- SettingsPropertyValue.cs
- DefaultTraceListener.cs
- RepeatButtonAutomationPeer.cs
- MatchingStyle.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DataGrid.cs
- EndpointDispatcherTable.cs
- RelationshipConverter.cs
- AsymmetricKeyExchangeFormatter.cs
- XmlSchemaImport.cs
- AppDomainCompilerProxy.cs
- StopStoryboard.cs
- DrawListViewItemEventArgs.cs
- PropertyPathWorker.cs
- InvalidCommandTreeException.cs
- ViewCellRelation.cs
- TransactionProtocol.cs
- Table.cs
- HuffmanTree.cs
- HiddenField.cs
- VisualBasicSettings.cs
- PasswordBox.cs
- ScriptReferenceBase.cs
- StringUtil.cs
- BindingList.cs
- ViewStateException.cs
- ArrangedElement.cs
- ObjectItemLoadingSessionData.cs
- DataGridViewSortCompareEventArgs.cs
- SequentialActivityDesigner.cs
- RepeatInfo.cs
- OptimalBreakSession.cs
- TiffBitmapEncoder.cs
- BooleanConverter.cs
- HMACSHA512.cs
- Crc32.cs
- DbMetaDataColumnNames.cs
- SequenceQuery.cs
- EntityCommandCompilationException.cs
- PublisherIdentityPermission.cs
- MimeBasePart.cs
- StylusCollection.cs
- TokenBasedSet.cs
- Types.cs
- WebPartTransformerAttribute.cs
- ToolStripSeparatorRenderEventArgs.cs
- ResourcePool.cs
- InteropBitmapSource.cs
- CalendarBlackoutDatesCollection.cs
- ProxyElement.cs
- RTLAwareMessageBox.cs
- SqlCrossApplyToCrossJoin.cs
- HwndSourceKeyboardInputSite.cs
- ReachSerializer.cs
- AbandonedMutexException.cs
- WhileDesigner.cs
- ScopelessEnumAttribute.cs
- InstanceNotFoundException.cs
- XmlCompatibilityReader.cs
- InertiaExpansionBehavior.cs
- IisTraceWebEventProvider.cs
- CheckBoxList.cs
- WebContext.cs
- Constraint.cs
- SolidBrush.cs
- XmlAttributeAttribute.cs
- ConfigurationStrings.cs
- ExpressionBuilder.cs
- UIElementIsland.cs
- CodeDirectoryCompiler.cs
- SerialPort.cs
- CodeTypeReferenceCollection.cs
- MsmqAppDomainProtocolHandler.cs
- LayoutDump.cs
- DocumentViewerBaseAutomationPeer.cs
- DocumentSchemaValidator.cs
- XMLSyntaxException.cs
- FileDialog.cs
- DoubleLinkList.cs
- DataServiceResponse.cs
- WebServiceAttribute.cs
- SoapObjectReader.cs
- DbXmlEnabledProviderManifest.cs
- SerializationSectionGroup.cs
- StringSorter.cs
- DefaultWorkflowTransactionService.cs
- NavigationPropertyEmitter.cs
- InstanceHandleConflictException.cs
- Canonicalizers.cs
- AttachmentService.cs
- EntityDataSourceContextCreatingEventArgs.cs
- Simplifier.cs
- PageParser.cs
- DetailsViewUpdateEventArgs.cs
- ActiveXHelper.cs
- ActivityTrace.cs
- PageThemeBuildProvider.cs