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
- SparseMemoryStream.cs
- SqlFlattener.cs
- XmlElementElementCollection.cs
- TextSimpleMarkerProperties.cs
- JulianCalendar.cs
- DiscreteKeyFrames.cs
- WebDisplayNameAttribute.cs
- FragmentNavigationEventArgs.cs
- RemoteHelper.cs
- dtdvalidator.cs
- RowToFieldTransformer.cs
- Object.cs
- FixedPageProcessor.cs
- TextTreeUndoUnit.cs
- ProcessHostServerConfig.cs
- ObjectListCommandsPage.cs
- ProcessHost.cs
- WsatExtendedInformation.cs
- Trace.cs
- LinqDataSourceDeleteEventArgs.cs
- ObjectDisposedException.cs
- ConfigurationManagerHelperFactory.cs
- NumericUpDownAcceleration.cs
- WebPartCatalogAddVerb.cs
- SspiNegotiationTokenAuthenticator.cs
- WindowsFormsHelpers.cs
- ListCommandEventArgs.cs
- Base64Encoding.cs
- MarkupCompilePass1.cs
- SystemSounds.cs
- RSAOAEPKeyExchangeFormatter.cs
- PropertyPathWorker.cs
- ShapeTypeface.cs
- processwaithandle.cs
- CqlLexerHelpers.cs
- Rule.cs
- SqlGatherProducedAliases.cs
- MetaType.cs
- TreePrinter.cs
- NegationPusher.cs
- PropertyKey.cs
- SerializationException.cs
- EtwTrace.cs
- DataTableReaderListener.cs
- PropertyMetadata.cs
- NewArrayExpression.cs
- CancellableEnumerable.cs
- SessionPageStatePersister.cs
- CaseStatement.cs
- WSSecureConversationFeb2005.cs
- WindowsFont.cs
- WebRequestModulesSection.cs
- Freezable.cs
- NonBatchDirectoryCompiler.cs
- KeyMatchBuilder.cs
- GC.cs
- XamlFilter.cs
- DiscardableAttribute.cs
- PartialCachingControl.cs
- DataGridViewCellLinkedList.cs
- ProcessHostServerConfig.cs
- DesignerHelpers.cs
- IndependentlyAnimatedPropertyMetadata.cs
- XmlSchemaDatatype.cs
- PeerObject.cs
- CngAlgorithmGroup.cs
- List.cs
- SmtpCommands.cs
- SqlBinder.cs
- XmlBufferReader.cs
- SamlAssertion.cs
- SymmetricAlgorithm.cs
- BinaryUtilClasses.cs
- WebPartDescriptionCollection.cs
- GrammarBuilderWildcard.cs
- CrossSiteScriptingValidation.cs
- CallSiteOps.cs
- RealProxy.cs
- validationstate.cs
- CodeChecksumPragma.cs
- ThicknessAnimationUsingKeyFrames.cs
- BorderGapMaskConverter.cs
- Stopwatch.cs
- ErrorStyle.cs
- ElementMarkupObject.cs
- FontUnitConverter.cs
- MemberListBinding.cs
- Compilation.cs
- COM2PictureConverter.cs
- HtmlTableCellCollection.cs
- CellTreeNodeVisitors.cs
- control.ime.cs
- QilTypeChecker.cs
- ReturnEventArgs.cs
- TransactionProxy.cs
- ColorConvertedBitmap.cs
- RegularExpressionValidator.cs
- MimePart.cs
- EmptyStringExpandableObjectConverter.cs
- Win32.cs