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
- PersonalizableAttribute.cs
- ToolStripItemDesigner.cs
- AspCompat.cs
- LogStore.cs
- RegexWriter.cs
- LambdaCompiler.ControlFlow.cs
- SessionStateItemCollection.cs
- ActivityExecutionWorkItem.cs
- SpecialFolderEnumConverter.cs
- AvTraceFormat.cs
- FullTrustAssembliesSection.cs
- DocumentAutomationPeer.cs
- CompilerGeneratedAttribute.cs
- SmiContextFactory.cs
- TextTreeFixupNode.cs
- NotifyParentPropertyAttribute.cs
- shaperfactoryquerycachekey.cs
- SendMailErrorEventArgs.cs
- Types.cs
- SQLBytesStorage.cs
- DaylightTime.cs
- BulletedListEventArgs.cs
- XmlDataSource.cs
- OdbcHandle.cs
- XmlWriter.cs
- ArgumentNullException.cs
- AnnotationAuthorChangedEventArgs.cs
- OracleConnection.cs
- CodeThrowExceptionStatement.cs
- TransactedReceiveScope.cs
- ServiceEndpointElementCollection.cs
- SecurityTokenSerializer.cs
- Subtree.cs
- DbConnectionStringCommon.cs
- FontFamily.cs
- FontTypeConverter.cs
- NetworkAddressChange.cs
- DynamicActivity.cs
- ReadOnlyTernaryTree.cs
- NamedPipeWorkerProcess.cs
- InvokeBase.cs
- UpdatePanelTriggerCollection.cs
- TitleStyle.cs
- ErrorEventArgs.cs
- ThreadStartException.cs
- DependencyObjectCodeDomSerializer.cs
- LongTypeConverter.cs
- MonitoringDescriptionAttribute.cs
- EndEvent.cs
- ISAPIWorkerRequest.cs
- MemberDomainMap.cs
- PageSettings.cs
- PrinterUnitConvert.cs
- backend.cs
- SoapObjectInfo.cs
- ToolStripActionList.cs
- SignedXml.cs
- InvalidCastException.cs
- MaterialGroup.cs
- ArgumentOutOfRangeException.cs
- ConfigXmlWhitespace.cs
- MatcherBuilder.cs
- ViewGenerator.cs
- Stackframe.cs
- RestClientProxyHandler.cs
- InheritablePropertyChangeInfo.cs
- HttpRuntimeSection.cs
- XmlTextReaderImpl.cs
- MonthCalendarDesigner.cs
- DiagnosticsConfigurationHandler.cs
- SchemaImporterExtensionsSection.cs
- Timer.cs
- TypeBuilderInstantiation.cs
- CompilerParameters.cs
- SplineKeyFrames.cs
- InterleavedZipPartStream.cs
- Label.cs
- PostBackTrigger.cs
- MessageEncoder.cs
- ParallelQuery.cs
- GenericWebPart.cs
- LinqDataSourceStatusEventArgs.cs
- ResourceDisplayNameAttribute.cs
- DBSqlParserTableCollection.cs
- SoapServerMethod.cs
- Int16Converter.cs
- DataGridViewRowPrePaintEventArgs.cs
- DecodeHelper.cs
- ExpressionNormalizer.cs
- SslStream.cs
- HashCodeCombiner.cs
- ActivityWithResultWrapper.cs
- _SSPIWrapper.cs
- SimpleMailWebEventProvider.cs
- XmlLoader.cs
- FrameworkElementFactory.cs
- UrlAuthorizationModule.cs
- TemplateBaseAction.cs
- SqlFactory.cs
- AttachedPropertyMethodSelector.cs