Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / SystemDiagnosticsSection.cs / 1305376 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MouseGestureValueSerializer.cs
- ZipIOBlockManager.cs
- XmlHierarchicalEnumerable.cs
- TagPrefixCollection.cs
- WorkflowViewElement.cs
- CreateUserWizardStep.cs
- CodeExpressionStatement.cs
- Header.cs
- TreeViewEvent.cs
- ParallelQuery.cs
- CqlIdentifiers.cs
- FileFormatException.cs
- VBCodeProvider.cs
- FrameworkElementFactoryMarkupObject.cs
- SqlStream.cs
- StylusPointProperties.cs
- Separator.cs
- IndexedString.cs
- ClientSettingsStore.cs
- FormsAuthenticationCredentials.cs
- OracleParameterCollection.cs
- DataGridViewCellValidatingEventArgs.cs
- FontSizeConverter.cs
- KoreanCalendar.cs
- safelink.cs
- XmlDomTextWriter.cs
- ResolveMatches11.cs
- ObjectQuery.cs
- StorageModelBuildProvider.cs
- GroupItem.cs
- TextElementEnumerator.cs
- _AutoWebProxyScriptHelper.cs
- _HeaderInfo.cs
- SmtpLoginAuthenticationModule.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- FormatVersion.cs
- DBPropSet.cs
- Invariant.cs
- Vector3DIndependentAnimationStorage.cs
- DefaultParameterValueAttribute.cs
- ComponentChangedEvent.cs
- ButtonChrome.cs
- DuplicateWaitObjectException.cs
- ObjectToIdCache.cs
- Module.cs
- ConfigXmlText.cs
- ItemsControl.cs
- CreationContext.cs
- AutoSizeToolBoxItem.cs
- DescendentsWalker.cs
- EdmFunctions.cs
- AssociationTypeEmitter.cs
- GridEntry.cs
- TableItemStyle.cs
- HatchBrush.cs
- StylusDevice.cs
- DataGrid.cs
- RC2CryptoServiceProvider.cs
- OdbcParameter.cs
- DataComponentGenerator.cs
- CodeDomSerializerBase.cs
- ScriptRegistrationManager.cs
- Decimal.cs
- DataServiceContext.cs
- MiniCustomAttributeInfo.cs
- ToolStripHighContrastRenderer.cs
- X509SubjectKeyIdentifierClause.cs
- TimerEventSubscriptionCollection.cs
- Timer.cs
- ADMembershipUser.cs
- EdmRelationshipRoleAttribute.cs
- ObjectPersistData.cs
- SoapParser.cs
- HttpHandlerActionCollection.cs
- EventHandlerService.cs
- SiteMapDataSource.cs
- XpsColorContext.cs
- ReferentialConstraint.cs
- TextReturnReader.cs
- UICuesEvent.cs
- OrderByBuilder.cs
- XPathAncestorIterator.cs
- LocalValueEnumerator.cs
- TdsValueSetter.cs
- BrowsableAttribute.cs
- LightweightCodeGenerator.cs
- XmlLanguage.cs
- invalidudtexception.cs
- ComUdtElementCollection.cs
- TemplateControlParser.cs
- TextEditorTyping.cs
- CodeBinaryOperatorExpression.cs
- CroppedBitmap.cs
- HandleRef.cs
- CalendarKeyboardHelper.cs
- NavigationFailedEventArgs.cs
- DocumentApplicationJournalEntryEventArgs.cs
- ServiceNameElement.cs
- VisualStyleTypesAndProperties.cs
- XmlArrayAttribute.cs