Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / DiagnosticSection.cs / 1 / DiagnosticSection.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
using System.ServiceModel.Channels;
using System.ServiceModel.Diagnostics;
using System.Globalization;
using System.Security;
public sealed partial class DiagnosticSection : ConfigurationSection
{
// These three constructors are used by the configuration system.
public DiagnosticSection() : base()
{
}
[ConfigurationProperty(ConfigurationStrings.WmiProviderEnabled, DefaultValue = false)]
public bool WmiProviderEnabled
{
get { return (bool)base[ConfigurationStrings.WmiProviderEnabled]; }
set { base[ConfigurationStrings.WmiProviderEnabled] = value; }
}
[ConfigurationProperty(ConfigurationStrings.MessageLogging, Options = ConfigurationPropertyOptions.None)]
public MessageLoggingElement MessageLogging
{
get {return (MessageLoggingElement) base[ConfigurationStrings.MessageLogging]; }
}
[ConfigurationProperty(ConfigurationStrings.PerformanceCounters, DefaultValue = PerformanceCounterScope.Default)]
[ServiceModelEnumValidator(typeof(PerformanceCounterScopeHelper))]
public PerformanceCounterScope PerformanceCounters
{
get { return (PerformanceCounterScope)base[ConfigurationStrings.PerformanceCounters]; }
set {base[ConfigurationStrings.PerformanceCounters] = value; }
}
internal static DiagnosticSection GetSection()
{
return (DiagnosticSection)ConfigurationHelpers.GetSection(ConfigurationStrings.DiagnosticSectionPath);
}
///
/// Critical - calls Critical method UnsafeGetSection which elevates in order to fetch config
/// caller must guard access to resultant config section
///
[SecurityCritical]
internal static DiagnosticSection UnsafeGetSection()
{
return (DiagnosticSection)ConfigurationHelpers.UnsafeGetSection(ConfigurationStrings.DiagnosticSectionPath);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleDbInfoMessageEvent.cs
- milrender.cs
- EdmToObjectNamespaceMap.cs
- PolyBezierSegment.cs
- FunctionDetailsReader.cs
- SemaphoreSecurity.cs
- ImmComposition.cs
- RelatedEnd.cs
- ProviderCommandInfoUtils.cs
- FontFamily.cs
- SplitterPanel.cs
- FieldDescriptor.cs
- MatrixUtil.cs
- ObjectViewFactory.cs
- CodeMethodReturnStatement.cs
- CanonicalFormWriter.cs
- MultiBinding.cs
- SqlNodeAnnotations.cs
- QuaternionRotation3D.cs
- GuidTagList.cs
- IndicFontClient.cs
- TableLayoutPanel.cs
- OneOf.cs
- FilteredAttributeCollection.cs
- ModuleElement.cs
- XmlReaderDelegator.cs
- ProfileModule.cs
- GlyphInfoList.cs
- IntSecurity.cs
- GridViewCommandEventArgs.cs
- ToolStripCodeDomSerializer.cs
- TypeCodeDomSerializer.cs
- FontFamilyConverter.cs
- MemberAssignment.cs
- BulletedListEventArgs.cs
- ReflectTypeDescriptionProvider.cs
- DesignBindingConverter.cs
- cookiecollection.cs
- AnimationTimeline.cs
- HtmlInputHidden.cs
- XmlLanguageConverter.cs
- InputScope.cs
- InternalConfigSettingsFactory.cs
- DocumentPaginator.cs
- KeyMatchBuilder.cs
- SqlConnectionStringBuilder.cs
- EncodingDataItem.cs
- Constraint.cs
- MetadataUtil.cs
- MarkupExtensionSerializer.cs
- WebBrowserPermission.cs
- CodeNamespaceCollection.cs
- RequestCachePolicyConverter.cs
- ThreadExceptionDialog.cs
- StrongName.cs
- ModifierKeysValueSerializer.cs
- OracleNumber.cs
- UITypeEditors.cs
- SoapHeaderException.cs
- AutomationPeer.cs
- XmlSchemaIdentityConstraint.cs
- XPathExpr.cs
- GridViewAutomationPeer.cs
- DocumentViewer.cs
- XmlLinkedNode.cs
- SatelliteContractVersionAttribute.cs
- SelectionChangedEventArgs.cs
- DtcInterfaces.cs
- ComPlusInstanceProvider.cs
- ColorInterpolationModeValidation.cs
- RoutingBehavior.cs
- Input.cs
- WindowsHyperlink.cs
- TabControl.cs
- ObjectView.cs
- validation.cs
- BindingExpression.cs
- BStrWrapper.cs
- SHA512Managed.cs
- InputQueueChannelAcceptor.cs
- TraceHandlerErrorFormatter.cs
- AspCompat.cs
- TagPrefixAttribute.cs
- TextParaClient.cs
- altserialization.cs
- BindingSource.cs
- StreamProxy.cs
- ComponentEditorForm.cs
- XamlBrushSerializer.cs
- DisplayInformation.cs
- CapabilitiesAssignment.cs
- ForceCopyBuildProvider.cs
- BezierSegment.cs
- TableLayoutCellPaintEventArgs.cs
- MessageEncodingBindingElementImporter.cs
- ConfigViewGenerator.cs
- WindowsTokenRoleProvider.cs
- Proxy.cs
- MoveSizeWinEventHandler.cs
- uribuilder.cs