Code:
/ DotNET / DotNET / 8.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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PointAnimation.cs
- WebBrowsableAttribute.cs
- AtomServiceDocumentSerializer.cs
- TemplateControl.cs
- FixedSOMLineRanges.cs
- ChannelTerminatedException.cs
- PersonalizationEntry.cs
- GlyphsSerializer.cs
- externdll.cs
- ECDiffieHellmanPublicKey.cs
- OleDbPermission.cs
- ShaderRenderModeValidation.cs
- AdornerHitTestResult.cs
- MatrixTransform.cs
- UriParserTemplates.cs
- _SSPIWrapper.cs
- _BufferOffsetSize.cs
- LeafCellTreeNode.cs
- MobileUITypeEditor.cs
- QilDataSource.cs
- ToolStripDropDownButton.cs
- EmptyElement.cs
- RelationshipConstraintValidator.cs
- SaveFileDialogDesigner.cs
- CodeDOMProvider.cs
- XmlSchemaCollection.cs
- X509UI.cs
- NavigationPropertyAccessor.cs
- PageVisual.cs
- HttpException.cs
- PageRequestManager.cs
- NeutralResourcesLanguageAttribute.cs
- TraceLog.cs
- ReadOnlyDataSource.cs
- CodeGotoStatement.cs
- BindingList.cs
- LinkUtilities.cs
- ButtonField.cs
- ActiveXSite.cs
- DynamicPropertyReader.cs
- TreeNodeClickEventArgs.cs
- EntityDataSourceChangingEventArgs.cs
- Rss20FeedFormatter.cs
- ContentPresenter.cs
- HwndKeyboardInputProvider.cs
- EventLogEntryCollection.cs
- LinqDataSourceStatusEventArgs.cs
- SecurityContextSecurityToken.cs
- BaseParaClient.cs
- GrabHandleGlyph.cs
- StrongName.cs
- SBCSCodePageEncoding.cs
- CultureInfoConverter.cs
- DateTimeValueSerializerContext.cs
- DialogResultConverter.cs
- PrintPreviewControl.cs
- LinkClickEvent.cs
- FontCacheLogic.cs
- GridViewColumnHeaderAutomationPeer.cs
- StructuralObject.cs
- ParenthesizePropertyNameAttribute.cs
- PartialCachingAttribute.cs
- ReversePositionQuery.cs
- MsmqUri.cs
- FrameSecurityDescriptor.cs
- IisTraceListener.cs
- DataSourceProvider.cs
- DbProviderFactory.cs
- Thread.cs
- DataSvcMapFileSerializer.cs
- SqlMultiplexer.cs
- XmlTextReader.cs
- UndirectedGraph.cs
- PriorityBindingExpression.cs
- RowBinding.cs
- RtType.cs
- FocusTracker.cs
- ChannelManager.cs
- LinearGradientBrush.cs
- XmlQueryOutput.cs
- SqlWorkflowInstanceStoreLock.cs
- InstanceNormalEvent.cs
- RegexCapture.cs
- CodeTypeMemberCollection.cs
- SafeBitVector32.cs
- AutomationEventArgs.cs
- GlyphsSerializer.cs
- SchemaHelper.cs
- ZipFileInfo.cs
- Timer.cs
- GenericParameterDataContract.cs
- XmlSchemaExternal.cs
- DateTimeOffset.cs
- DragStartedEventArgs.cs
- HandleCollector.cs
- QilGenerator.cs
- FontFamily.cs
- TagMapInfo.cs
- XmlSchemaAnnotated.cs
- ServiceMetadataContractBehavior.cs