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
- DocumentGridContextMenu.cs
- XmlPreloadedResolver.cs
- ProcessModelInfo.cs
- PartitionResolver.cs
- MarkupCompilePass1.cs
- WindowHideOrCloseTracker.cs
- HttpsChannelListener.cs
- MatchSingleFxEngineOpcode.cs
- ParameterToken.cs
- ContextMenuService.cs
- WindowsRebar.cs
- RuntimeHelpers.cs
- RelatedPropertyManager.cs
- mediaclock.cs
- AsymmetricSignatureDeformatter.cs
- DesignTimeParseData.cs
- CodeTypeParameterCollection.cs
- XhtmlBasicLabelAdapter.cs
- GlobalizationAssembly.cs
- dsa.cs
- NavigationFailedEventArgs.cs
- TitleStyle.cs
- PropertyValueUIItem.cs
- AgileSafeNativeMemoryHandle.cs
- Expressions.cs
- ScriptReferenceEventArgs.cs
- PhoneCall.cs
- LoginDesignerUtil.cs
- PageAsyncTaskManager.cs
- TypeLoadException.cs
- DoubleStorage.cs
- ErrorHandler.cs
- WindowsFormsHostPropertyMap.cs
- MenuEventArgs.cs
- RichTextBoxContextMenu.cs
- RNGCryptoServiceProvider.cs
- initElementDictionary.cs
- Deflater.cs
- SqlFunctionAttribute.cs
- ListenerElementsCollection.cs
- DebugView.cs
- CmsUtils.cs
- StreamReader.cs
- XmlNamedNodeMap.cs
- ExpressionList.cs
- ObjectStateManagerMetadata.cs
- EventBindingService.cs
- OneOfTypeConst.cs
- Vector3DValueSerializer.cs
- COM2IPerPropertyBrowsingHandler.cs
- WebPartCloseVerb.cs
- MatrixCamera.cs
- InvalidPrinterException.cs
- StringValidator.cs
- Rect.cs
- ToRequest.cs
- AppDomainEvidenceFactory.cs
- EdgeProfileValidation.cs
- EpmSourcePathSegment.cs
- CodeConditionStatement.cs
- SafeHandle.cs
- WorkflowWebService.cs
- Opcode.cs
- XamlSerializerUtil.cs
- _NativeSSPI.cs
- TransactionChannel.cs
- DisplayToken.cs
- Vector3DKeyFrameCollection.cs
- GlobalizationAssembly.cs
- ConsoleCancelEventArgs.cs
- MessageBox.cs
- StylusEventArgs.cs
- NestPullup.cs
- DataServiceProcessingPipelineEventArgs.cs
- WindowsToolbar.cs
- AdPostCacheSubstitution.cs
- BinaryFormatterSinks.cs
- SchemaElementLookUpTableEnumerator.cs
- DecimalConstantAttribute.cs
- CustomAttributeSerializer.cs
- ADMembershipProvider.cs
- HostDesigntimeLicenseContext.cs
- OleTxTransaction.cs
- FromReply.cs
- ParameterCollectionEditor.cs
- TimeSpanOrInfiniteConverter.cs
- UserInitiatedRoutedEventPermission.cs
- SchemaImporterExtensionElement.cs
- namescope.cs
- LicenseException.cs
- XmlSchemaProviderAttribute.cs
- XmlEncodedRawTextWriter.cs
- PersistChildrenAttribute.cs
- StrokeFIndices.cs
- WeakReferenceList.cs
- CodeBlockBuilder.cs
- XmlHierarchyData.cs
- ComboBoxItem.cs
- HttpRequestContext.cs
- OutputCacheSection.cs