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
- URI.cs
- SafeEventLogReadHandle.cs
- QilUnary.cs
- HostingEnvironmentSection.cs
- _KerberosClient.cs
- XmlMapping.cs
- securitymgrsite.cs
- CodeThrowExceptionStatement.cs
- IdentitySection.cs
- WorkflowInstance.cs
- MouseGesture.cs
- CalendarDateRange.cs
- KeyInterop.cs
- FixedPageStructure.cs
- FixUpCollection.cs
- CachedRequestParams.cs
- WebPartZoneCollection.cs
- Light.cs
- connectionpool.cs
- PersonalizationState.cs
- FrameSecurityDescriptor.cs
- SystemWebCachingSectionGroup.cs
- LocationSectionRecord.cs
- ClipboardProcessor.cs
- GenericTextProperties.cs
- SmtpSection.cs
- NullableFloatAverageAggregationOperator.cs
- SafeEventHandle.cs
- OleDbInfoMessageEvent.cs
- BooleanAnimationUsingKeyFrames.cs
- TextBoxAutomationPeer.cs
- WorkflowValidationFailedException.cs
- IndividualDeviceConfig.cs
- InputLanguageEventArgs.cs
- grammarelement.cs
- PenCursorManager.cs
- ServiceCredentialsElement.cs
- ValidationRuleCollection.cs
- GroupStyle.cs
- LayoutManager.cs
- Imaging.cs
- PassportAuthentication.cs
- IdentityManager.cs
- BamlVersionHeader.cs
- SR.cs
- VirtualizedContainerService.cs
- FixedHighlight.cs
- DataGridViewRowsAddedEventArgs.cs
- ArrayList.cs
- OracleColumn.cs
- SqlRowUpdatingEvent.cs
- RowVisual.cs
- BamlRecordWriter.cs
- FontDriver.cs
- MarkupObject.cs
- _ProxyChain.cs
- HttpResponseHeader.cs
- CodeIdentifier.cs
- DispatcherTimer.cs
- RangeBase.cs
- SafeLibraryHandle.cs
- ProxyGenerator.cs
- SimpleWorkerRequest.cs
- WebPartConnectionCollection.cs
- WindowsClientElement.cs
- ParseNumbers.cs
- AlgoModule.cs
- TransformCollection.cs
- XmlSchemaComplexContentRestriction.cs
- EntityCollection.cs
- CreateUserErrorEventArgs.cs
- XamlWriterExtensions.cs
- CursorConverter.cs
- NamespaceQuery.cs
- ElementNotAvailableException.cs
- D3DImage.cs
- FlowDocumentScrollViewer.cs
- QualifiedCellIdBoolean.cs
- ToolStripGrip.cs
- ManagementEventArgs.cs
- ValidationError.cs
- DnsEndPoint.cs
- CustomCredentialPolicy.cs
- FixedHyperLink.cs
- XmlSiteMapProvider.cs
- FormViewInsertedEventArgs.cs
- BamlBinaryReader.cs
- ServiceOperation.cs
- DataSource.cs
- MaskedTextBoxTextEditorDropDown.cs
- ToolStripSplitButton.cs
- KeyValueInternalCollection.cs
- ProtectedConfigurationProviderCollection.cs
- HtmlTableCellCollection.cs
- DocumentSchemaValidator.cs
- EntityDataSourceDesigner.cs
- FileDialog_Vista_Interop.cs
- ContainerParaClient.cs
- DoubleCollectionValueSerializer.cs
- DataListItem.cs