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
- UnsafeCollabNativeMethods.cs
- HandleCollector.cs
- OSFeature.cs
- UnsafeNativeMethods.cs
- ImportException.cs
- Base64Decoder.cs
- StringValidatorAttribute.cs
- rsa.cs
- WindowsRichEditRange.cs
- Trigger.cs
- XPathScanner.cs
- MdImport.cs
- TextEditorDragDrop.cs
- SiteMap.cs
- EventSetter.cs
- TaiwanCalendar.cs
- ScriptReferenceEventArgs.cs
- Boolean.cs
- ProfileGroupSettingsCollection.cs
- AutoResizedEvent.cs
- SqlDataSourceFilteringEventArgs.cs
- UInt32Storage.cs
- CharConverter.cs
- UnSafeCharBuffer.cs
- SynchronizationValidator.cs
- GeneratedContractType.cs
- MimeMapping.cs
- ResourceDictionary.cs
- RequestBringIntoViewEventArgs.cs
- OptimizedTemplateContentHelper.cs
- NamedPermissionSet.cs
- ValueProviderWrapper.cs
- XmlSchema.cs
- OdbcTransaction.cs
- TextBoxAutoCompleteSourceConverter.cs
- ExpressionBuilder.cs
- AuthenticationModulesSection.cs
- PowerModeChangedEventArgs.cs
- NetworkCredential.cs
- SecurityPermission.cs
- Focus.cs
- GeometryDrawing.cs
- OutputCacheSection.cs
- _PooledStream.cs
- BamlRecordHelper.cs
- XmlNamespaceDeclarationsAttribute.cs
- StylusButton.cs
- MultiView.cs
- DataBinder.cs
- DataGridViewCellPaintingEventArgs.cs
- QueryStringParameter.cs
- _NativeSSPI.cs
- InfocardChannelParameter.cs
- Message.cs
- VolatileResourceManager.cs
- CmsInterop.cs
- MsmqIntegrationElement.cs
- FixedDocumentPaginator.cs
- XmlSchemaSubstitutionGroup.cs
- ReadOnlyDataSourceView.cs
- HttpModulesSection.cs
- WindowsStartMenu.cs
- DataGridItemCollection.cs
- httpapplicationstate.cs
- WindowsTokenRoleProvider.cs
- BaseTreeIterator.cs
- CompositeDispatchFormatter.cs
- ElementUtil.cs
- GlyphTypeface.cs
- LocatorManager.cs
- EntitySetBaseCollection.cs
- IBuiltInEvidence.cs
- DictionaryContent.cs
- RuntimeHelpers.cs
- Rules.cs
- HttpProcessUtility.cs
- DataGridParentRows.cs
- NetSectionGroup.cs
- WebPartTransformerCollection.cs
- PrinterUnitConvert.cs
- XmlRawWriter.cs
- EntityWrapper.cs
- RangeValidator.cs
- SafeHandles.cs
- HttpListenerPrefixCollection.cs
- MarkupCompilePass1.cs
- SchemaNamespaceManager.cs
- SafeThemeHandle.cs
- SerializableAttribute.cs
- SamlNameIdentifierClaimResource.cs
- Models.cs
- InstalledVoice.cs
- Boolean.cs
- StatusBarItemAutomationPeer.cs
- DbProviderFactoriesConfigurationHandler.cs
- SrgsRuleRef.cs
- ObservableCollection.cs
- MatrixStack.cs
- TreeNodeCollection.cs
- StylusPointDescription.cs