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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509UI.cs
- QuadraticBezierSegment.cs
- BindUriHelper.cs
- Form.cs
- ToolBarTray.cs
- FileNotFoundException.cs
- ChannelSinkStacks.cs
- Brush.cs
- ResolveMatchesCD1.cs
- hresults.cs
- ObjectSpanRewriter.cs
- XmlSchemaExporter.cs
- TypefaceMap.cs
- WebPartZoneCollection.cs
- DateTimeEditor.cs
- Button.cs
- ComplexTypeEmitter.cs
- ChannelServices.cs
- SystemWebCachingSectionGroup.cs
- ApplicationSecurityInfo.cs
- ConnectionsZone.cs
- TopClause.cs
- PhotoPrintingIntent.cs
- Rect.cs
- LinearGradientBrush.cs
- SocketElement.cs
- XamlGridLengthSerializer.cs
- ListBoxAutomationPeer.cs
- HttpResponseWrapper.cs
- SerializationBinder.cs
- TextTreeRootTextBlock.cs
- X509AsymmetricSecurityKey.cs
- RuntimeConfigLKG.cs
- StreamResourceInfo.cs
- ValidationEventArgs.cs
- DataGridViewCellStateChangedEventArgs.cs
- MessageQueueCriteria.cs
- DataBoundControlHelper.cs
- StrokeRenderer.cs
- UInt64.cs
- FileSystemInfo.cs
- Knowncolors.cs
- QuaternionConverter.cs
- MonitoringDescriptionAttribute.cs
- IndexedGlyphRun.cs
- TimeoutTimer.cs
- ChannelPoolSettingsElement.cs
- RightNameExpirationInfoPair.cs
- BinaryEditor.cs
- QueryOutputWriter.cs
- ToolStripPanelRow.cs
- ITreeGenerator.cs
- RotationValidation.cs
- TransformCryptoHandle.cs
- Int32.cs
- VectorAnimation.cs
- DesignerSerializationOptionsAttribute.cs
- NamespaceCollection.cs
- LabelDesigner.cs
- OrCondition.cs
- DelegateHelpers.cs
- WSHttpTransportSecurityElement.cs
- HttpClientChannel.cs
- ButtonField.cs
- LocalizableAttribute.cs
- CellCreator.cs
- NavigationWindowAutomationPeer.cs
- CompositionCommandSet.cs
- TemplatePagerField.cs
- Animatable.cs
- RadioButton.cs
- GenerateScriptTypeAttribute.cs
- XmlNodeChangedEventManager.cs
- CriticalFileToken.cs
- CollectionsUtil.cs
- GridProviderWrapper.cs
- ArgIterator.cs
- SqlDependencyListener.cs
- Matrix.cs
- PixelFormat.cs
- RewritingValidator.cs
- ConnectivityStatus.cs
- PagePropertiesChangingEventArgs.cs
- NextPreviousPagerField.cs
- WindowsEditBoxRange.cs
- ISFClipboardData.cs
- WebServiceTypeData.cs
- WebPartDescription.cs
- WebPart.cs
- UnsafeNativeMethods.cs
- OracleConnection.cs
- RoleManagerModule.cs
- CodeArrayIndexerExpression.cs
- SqlRemoveConstantOrderBy.cs
- CollectionBuilder.cs
- TextBoxView.cs
- IPHostEntry.cs
- HtmlFormWrapper.cs
- ListViewTableRow.cs
- ConfigXmlWhitespace.cs