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
- SubMenuStyle.cs
- XmlWellformedWriter.cs
- EncryptedKey.cs
- RawAppCommandInputReport.cs
- GridViewSortEventArgs.cs
- RenderContext.cs
- ExceptionTrace.cs
- NameGenerator.cs
- SqlDataSourceTableQuery.cs
- XmlSchemaSimpleTypeList.cs
- ColumnHeaderConverter.cs
- EventDescriptor.cs
- EventProvider.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CodeIndexerExpression.cs
- LogSwitch.cs
- ToolBarPanel.cs
- UnorderedHashRepartitionStream.cs
- SqlInternalConnectionTds.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- CustomWebEventKey.cs
- CustomErrorCollection.cs
- MetabaseServerConfig.cs
- ModelService.cs
- RuleSetReference.cs
- SpeakInfo.cs
- TimeSpanOrInfiniteValidator.cs
- NullableDecimalMinMaxAggregationOperator.cs
- RegexBoyerMoore.cs
- InputLangChangeEvent.cs
- TemplateKeyConverter.cs
- ScrollProviderWrapper.cs
- Collection.cs
- WebPageTraceListener.cs
- ComponentResourceManager.cs
- DbReferenceCollection.cs
- mediapermission.cs
- tibetanshape.cs
- AnnotationComponentChooser.cs
- StringValueSerializer.cs
- Part.cs
- ExpressionBinding.cs
- PenContexts.cs
- CalculatedColumn.cs
- DesignerDataStoredProcedure.cs
- GridViewCancelEditEventArgs.cs
- SpotLight.cs
- XPathNodeList.cs
- ClientApiGenerator.cs
- DropShadowEffect.cs
- RowsCopiedEventArgs.cs
- DelayDesigner.cs
- TemplateKey.cs
- StoreItemCollection.Loader.cs
- CfgParser.cs
- SystemIPInterfaceProperties.cs
- FigureParaClient.cs
- AnnouncementClient.cs
- CheckBoxFlatAdapter.cs
- AddIn.cs
- ValidationEventArgs.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- GAC.cs
- DESCryptoServiceProvider.cs
- RSAOAEPKeyExchangeFormatter.cs
- OdbcCommand.cs
- CompareValidator.cs
- StringDictionary.cs
- HtmlTextArea.cs
- GridViewHeaderRowPresenter.cs
- ContentFilePart.cs
- RbTree.cs
- COM2Properties.cs
- CodeVariableReferenceExpression.cs
- Listbox.cs
- GridViewRowCollection.cs
- IBuiltInEvidence.cs
- ListViewUpdateEventArgs.cs
- BaseConfigurationRecord.cs
- SafeCertificateStore.cs
- XamlHttpHandlerFactory.cs
- PolyLineSegment.cs
- TemplateKeyConverter.cs
- EventRecord.cs
- SafeNativeMethods.cs
- PageRouteHandler.cs
- ProcessHostFactoryHelper.cs
- AddToCollection.cs
- DataColumnPropertyDescriptor.cs
- CapabilitiesAssignment.cs
- HwndPanningFeedback.cs
- ToolBarButtonClickEvent.cs
- ClockGroup.cs
- WebPartZoneBaseDesigner.cs
- MatchNoneMessageFilter.cs
- StoreItemCollection.cs
- DummyDataSource.cs
- UnmanagedBitmapWrapper.cs
- QilPatternFactory.cs
- SamlAuthorityBinding.cs