Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / TraceSection.cs / 1305376 / TraceSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; namespace System.Diagnostics { internal class TraceSection : ConfigurationElement { private static readonly ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propListeners = new ConfigurationProperty("listeners", typeof(ListenerElementsCollection), new ListenerElementsCollection(), ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propAutoFlush = new ConfigurationProperty("autoflush", typeof(bool), false, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propIndentSize = new ConfigurationProperty("indentsize", typeof(int), 4, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propUseGlobalLock = new ConfigurationProperty("useGlobalLock", typeof(bool), true, ConfigurationPropertyOptions.None); static TraceSection() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propListeners); _properties.Add(_propAutoFlush); _properties.Add(_propIndentSize); _properties.Add(_propUseGlobalLock); } [ConfigurationProperty( "autoflush", DefaultValue=false )] public bool AutoFlush { get { return (bool) this[_propAutoFlush]; } } [ConfigurationProperty( "indentsize", DefaultValue=4 )] public int IndentSize { get { return (int) this[_propIndentSize]; } } [ConfigurationProperty( "listeners" )] public ListenerElementsCollection Listeners { get { return (ListenerElementsCollection) this[_propListeners]; } } [ConfigurationProperty( "useGlobalLock", DefaultValue = true)] public bool UseGlobalLock { get { return (bool) this[_propUseGlobalLock]; } } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } } } // 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
- ISCIIEncoding.cs
- WebConfigurationFileMap.cs
- bidPrivateBase.cs
- KeyEventArgs.cs
- ControlBuilder.cs
- RouteItem.cs
- Brush.cs
- TextControlDesigner.cs
- DataSourceControlBuilder.cs
- SmtpNtlmAuthenticationModule.cs
- PersistenceProvider.cs
- SchemaImporterExtensionElementCollection.cs
- MeshGeometry3D.cs
- ThicknessConverter.cs
- DataGridDesigner.cs
- PageClientProxyGenerator.cs
- Zone.cs
- MulticastNotSupportedException.cs
- ArithmeticLiteral.cs
- TextDecorationCollection.cs
- Base64Stream.cs
- OletxTransactionManager.cs
- BackStopAuthenticationModule.cs
- QuadraticBezierSegment.cs
- LocationReferenceEnvironment.cs
- SqlConnectionPoolProviderInfo.cs
- EntityAdapter.cs
- RegexMatch.cs
- SchemaInfo.cs
- PenContexts.cs
- RectAnimationBase.cs
- UpdatePanelControlTrigger.cs
- Pen.cs
- XmlText.cs
- GenericIdentity.cs
- SqlReferenceCollection.cs
- DependencyPropertyValueSerializer.cs
- ProfileSettingsCollection.cs
- BindingObserver.cs
- OdbcConnectionFactory.cs
- GridErrorDlg.cs
- NumberSubstitution.cs
- DocumentAutomationPeer.cs
- SystemFonts.cs
- WorkflowOperationContext.cs
- SupportingTokenSecurityTokenResolver.cs
- SqlOuterApplyReducer.cs
- DBBindings.cs
- BinHexDecoder.cs
- BlobPersonalizationState.cs
- DateTimeFormat.cs
- SymbolEqualComparer.cs
- ClientBuildManagerCallback.cs
- QueryAccessibilityHelpEvent.cs
- Pkcs9Attribute.cs
- Facet.cs
- ListenDesigner.cs
- BufferBuilder.cs
- WebEvents.cs
- RawUIStateInputReport.cs
- Confirm.cs
- MimeWriter.cs
- SafeRegistryHandle.cs
- ApplicationSecurityManager.cs
- TemplateLookupAction.cs
- MetadataWorkspace.cs
- ThicknessConverter.cs
- SqlGatherProducedAliases.cs
- ProfilePropertySettings.cs
- SourceSwitch.cs
- TimelineClockCollection.cs
- SimpleWebHandlerParser.cs
- TypeBuilderInstantiation.cs
- GridViewUpdatedEventArgs.cs
- WorkflowInlining.cs
- ToolStripItemImageRenderEventArgs.cs
- WebServiceClientProxyGenerator.cs
- CloudCollection.cs
- Wrapper.cs
- DrawingContextWalker.cs
- ColorTranslator.cs
- FlowDocumentReaderAutomationPeer.cs
- TextEvent.cs
- IPEndPointCollection.cs
- LastQueryOperator.cs
- XmlDigitalSignatureProcessor.cs
- OracleBFile.cs
- WebServiceFault.cs
- RegexWorker.cs
- Attributes.cs
- SpotLight.cs
- SqlWorkflowPersistenceService.cs
- ISFTagAndGuidCache.cs
- VirtualPathUtility.cs
- MD5CryptoServiceProvider.cs
- PeerToPeerException.cs
- FragmentQueryProcessor.cs
- mediapermission.cs
- QilChoice.cs
- ADMembershipProvider.cs