Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / Diagnostics / SystemDiagnosticsSection.cs / 1 / SystemDiagnosticsSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; namespace System.Diagnostics { internal class SystemDiagnosticsSection : ConfigurationSection { private static readonly ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propAssert = new ConfigurationProperty("assert", typeof(AssertSection), new AssertSection(), ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propPerfCounters = new ConfigurationProperty("performanceCounters", typeof(PerfCounterSection), new PerfCounterSection(), ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propSources = new ConfigurationProperty("sources", typeof(SourceElementsCollection), new SourceElementsCollection(), ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propSharedListeners = new ConfigurationProperty("sharedListeners", typeof(SharedListenerElementsCollection), new SharedListenerElementsCollection(), ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propSwitches = new ConfigurationProperty("switches", typeof(SwitchElementsCollection), new SwitchElementsCollection(), ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propTrace = new ConfigurationProperty("trace", typeof(TraceSection), new TraceSection(), ConfigurationPropertyOptions.None); static SystemDiagnosticsSection() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propAssert); _properties.Add(_propPerfCounters); _properties.Add(_propSources); _properties.Add(_propSharedListeners); _properties.Add(_propSwitches); _properties.Add(_propTrace); } [ConfigurationProperty("assert")] public AssertSection Assert { get { return (AssertSection) base[_propAssert]; } } [ConfigurationProperty("performanceCounters")] public PerfCounterSection PerfCounters { get { return (PerfCounterSection) base[_propPerfCounters]; } } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("sources")] public SourceElementsCollection Sources { get { return (SourceElementsCollection ) base[_propSources]; } } [ConfigurationProperty("sharedListeners")] public ListenerElementsCollection SharedListeners { get { return (ListenerElementsCollection) base[_propSharedListeners]; } } [ConfigurationProperty("switches")] public SwitchElementsCollection Switches { get { return (SwitchElementsCollection) base[_propSwitches]; } } [ConfigurationProperty("trace")] public TraceSection Trace { get { return (TraceSection) base[_propTrace]; } } protected override void InitializeDefault() { Trace.Listeners.InitializeDefaultInternal(); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MarginCollapsingState.cs
- WebPartsPersonalization.cs
- ChannelManager.cs
- XmlDataFileEditor.cs
- StickyNoteHelper.cs
- AppearanceEditorPart.cs
- UnsafeNativeMethodsPenimc.cs
- ThicknessAnimationBase.cs
- SHA1CryptoServiceProvider.cs
- CodeDOMProvider.cs
- _UriTypeConverter.cs
- RoleService.cs
- Roles.cs
- Int32Animation.cs
- _BufferOffsetSize.cs
- NonBatchDirectoryCompiler.cs
- DebugInfoGenerator.cs
- Set.cs
- DynamicQueryableWrapper.cs
- MasterPageCodeDomTreeGenerator.cs
- ImageSource.cs
- PcmConverter.cs
- OdbcConnectionPoolProviderInfo.cs
- CustomAttributeSerializer.cs
- SplineKeyFrames.cs
- DataPointer.cs
- MainMenu.cs
- ImmutableCommunicationTimeouts.cs
- WpfSharedXamlSchemaContext.cs
- EventKeyword.cs
- SymbolMethod.cs
- ProxyGenerationError.cs
- Int32.cs
- XmlParserContext.cs
- Misc.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ProtectedConfiguration.cs
- FreezableCollection.cs
- Misc.cs
- DataProtection.cs
- ComboBox.cs
- PageAdapter.cs
- InvalidateEvent.cs
- WebZone.cs
- CompoundFileStorageReference.cs
- Mappings.cs
- DefaultBinder.cs
- SizeAnimationUsingKeyFrames.cs
- CallbackException.cs
- WebPartAuthorizationEventArgs.cs
- DependentList.cs
- PasswordValidationException.cs
- LabelLiteral.cs
- PromptEventArgs.cs
- SqlCacheDependencyDatabase.cs
- printdlgexmarshaler.cs
- DataControlPagerLinkButton.cs
- DoubleLink.cs
- Constants.cs
- PartitionedStream.cs
- XmlSerializerOperationGenerator.cs
- coordinatorscratchpad.cs
- BindingMemberInfo.cs
- DelegatingTypeDescriptionProvider.cs
- SqlParameterCollection.cs
- SqlNodeAnnotations.cs
- MessageQueueException.cs
- DataQuery.cs
- MonthCalendar.cs
- WebPartManager.cs
- BrowserCapabilitiesCompiler.cs
- IPHostEntry.cs
- RightsManagementEncryptedStream.cs
- mediapermission.cs
- UIntPtr.cs
- BookmarkEventArgs.cs
- HttpResponse.cs
- DataGridPageChangedEventArgs.cs
- CodeComment.cs
- IndentTextWriter.cs
- IndependentAnimationStorage.cs
- RawKeyboardInputReport.cs
- ResXBuildProvider.cs
- BamlBinaryReader.cs
- DataGridViewTextBoxCell.cs
- Trace.cs
- ChineseLunisolarCalendar.cs
- FunctionOverloadResolver.cs
- Columns.cs
- RoleService.cs
- UnsafeNativeMethods.cs
- QualificationDataItem.cs
- SpecularMaterial.cs
- AsymmetricSignatureDeformatter.cs
- HostingEnvironmentWrapper.cs
- BamlLocalizer.cs
- HMACRIPEMD160.cs
- MatrixStack.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DiffuseMaterial.cs