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
- Composition.cs
- PropertyContainer.cs
- FixedSOMPageConstructor.cs
- SignedPkcs7.cs
- HasCopySemanticsAttribute.cs
- SecurityContextCookieSerializer.cs
- SqlExpressionNullability.cs
- ScriptRef.cs
- XmlNavigatorFilter.cs
- Int32Rect.cs
- CustomTypeDescriptor.cs
- SQlBooleanStorage.cs
- SqlDelegatedTransaction.cs
- ModuleConfigurationInfo.cs
- EditingMode.cs
- SqlRowUpdatingEvent.cs
- AppSecurityManager.cs
- ProfileBuildProvider.cs
- PropertyPathConverter.cs
- MasterPageParser.cs
- ComponentRenameEvent.cs
- CreateBookmarkScope.cs
- InfiniteTimeSpanConverter.cs
- SiteMapNode.cs
- HttpWriter.cs
- InvalidCommandTreeException.cs
- MetadataSection.cs
- RightsManagementUser.cs
- JulianCalendar.cs
- ObjectTag.cs
- ResolvedKeyFrameEntry.cs
- HtmlFormWrapper.cs
- ScrollBarRenderer.cs
- KeyBinding.cs
- CodePageEncoding.cs
- ClientTargetSection.cs
- HostingPreferredMapPath.cs
- Filter.cs
- TemplatingOptionsDialog.cs
- FontResourceCache.cs
- FilterRepeater.cs
- RegistryKey.cs
- SystemTcpStatistics.cs
- Math.cs
- HTTPNotFoundHandler.cs
- BrowserCapabilitiesFactory.cs
- SmtpNtlmAuthenticationModule.cs
- InvalidOperationException.cs
- SiteMapSection.cs
- SmtpTransport.cs
- SpellCheck.cs
- ConfigurationSectionGroupCollection.cs
- ConnectionsZone.cs
- ReadOnlyAttribute.cs
- TextTreeTextBlock.cs
- ImageClickEventArgs.cs
- Symbol.cs
- WebPartConnectionCollection.cs
- ObjectResult.cs
- ListDictionaryInternal.cs
- SecondaryIndex.cs
- XPathNodeInfoAtom.cs
- TypeNameParser.cs
- UnmanagedMemoryStreamWrapper.cs
- ConnectionPoint.cs
- XmlSchemaDocumentation.cs
- CompositeFontParser.cs
- BuildManager.cs
- formatstringdialog.cs
- StrokeNodeEnumerator.cs
- DataServiceBehavior.cs
- RTLAwareMessageBox.cs
- SBCSCodePageEncoding.cs
- Directory.cs
- SoapElementAttribute.cs
- Publisher.cs
- RootBuilder.cs
- RangeBase.cs
- _ChunkParse.cs
- SamlAttribute.cs
- XmlHierarchyData.cs
- HtmlTitle.cs
- ClientFormsAuthenticationCredentials.cs
- LayoutUtils.cs
- TypeListConverter.cs
- Thread.cs
- SiblingIterators.cs
- PrimitiveXmlSerializers.cs
- oledbmetadatacolumnnames.cs
- OutputBuffer.cs
- MissingSatelliteAssemblyException.cs
- COAUTHIDENTITY.cs
- TriggerBase.cs
- DoubleCollection.cs
- HttpResponseInternalWrapper.cs
- MinMaxParagraphWidth.cs
- TemplateBamlTreeBuilder.cs
- HwndTarget.cs
- ScriptMethodAttribute.cs
- XmlSchemaInclude.cs