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
- OuterGlowBitmapEffect.cs
- ProfileGroupSettingsCollection.cs
- TraceHwndHost.cs
- DbResourceAllocator.cs
- _StreamFramer.cs
- XamlGridLengthSerializer.cs
- Behavior.cs
- ClickablePoint.cs
- DataGridViewCellStyleConverter.cs
- IISUnsafeMethods.cs
- ObjectDataSourceDesigner.cs
- RubberbandSelector.cs
- Encoder.cs
- PropertyInfoSet.cs
- ToolStripMenuItem.cs
- MsmqInputChannelListener.cs
- ToolboxComponentsCreatedEventArgs.cs
- SecurityUtils.cs
- TypefaceCollection.cs
- BufferBuilder.cs
- NumberSubstitution.cs
- QilTernary.cs
- SignatureDescription.cs
- StringConverter.cs
- ApplicationId.cs
- oledbmetadatacollectionnames.cs
- PersistChildrenAttribute.cs
- CachedCompositeFamily.cs
- MemoryRecordBuffer.cs
- TaskFileService.cs
- ReaderWriterLockWrapper.cs
- InputScope.cs
- ProxyWebPartManager.cs
- NonSerializedAttribute.cs
- FileDialog.cs
- TypeSemantics.cs
- SerializationInfoEnumerator.cs
- MethodCallConverter.cs
- TreeNodeEventArgs.cs
- PreviewControlDesigner.cs
- EdmProperty.cs
- SerialPinChanges.cs
- LabelEditEvent.cs
- ZipIOExtraFieldPaddingElement.cs
- SamlEvidence.cs
- HtmlLink.cs
- StylusEditingBehavior.cs
- CommunicationObject.cs
- StringFunctions.cs
- PathGradientBrush.cs
- XmlCharCheckingReader.cs
- fixedPageContentExtractor.cs
- ValueTypePropertyReference.cs
- SelectionUIService.cs
- WizardPanelChangingEventArgs.cs
- TextTreeInsertElementUndoUnit.cs
- AbstractSvcMapFileLoader.cs
- ApplicationSettingsBase.cs
- Message.cs
- OneOfScalarConst.cs
- XmlAggregates.cs
- QueryableFilterRepeater.cs
- WpfGeneratedKnownTypes.cs
- SizeConverter.cs
- CallSite.cs
- SchemaInfo.cs
- EnumValidator.cs
- IconHelper.cs
- SamlSecurityToken.cs
- RangeContentEnumerator.cs
- CustomCredentialPolicy.cs
- DateTimeUtil.cs
- PostBackTrigger.cs
- StyleSheetRefUrlEditor.cs
- TreeViewDesigner.cs
- PrintingPermission.cs
- TextDecorationCollection.cs
- Semaphore.cs
- CodeEntryPointMethod.cs
- DataGridViewTextBoxCell.cs
- TextServicesManager.cs
- ListBase.cs
- HttpValueCollection.cs
- NestPullup.cs
- UpdateProgress.cs
- IOThreadTimer.cs
- DesignerTransaction.cs
- AssemblyInfo.cs
- SqlMultiplexer.cs
- ExpressionBuilderContext.cs
- PrtTicket_Public.cs
- VisualStyleInformation.cs
- XmlSchemaSequence.cs
- SoapConverter.cs
- ItemMap.cs
- XmlDomTextWriter.cs
- NotConverter.cs
- AstTree.cs
- MultiplexingDispatchMessageFormatter.cs
- ResumeStoryboard.cs