Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / Diagnostics / TraceSection.cs / 1 / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HTTPNotFoundHandler.cs
- _LoggingObject.cs
- UnknownBitmapEncoder.cs
- CalloutQueueItem.cs
- TreeNodeSelectionProcessor.cs
- HttpCachePolicy.cs
- StringInfo.cs
- MediaTimeline.cs
- ExpressionBindingCollection.cs
- RemotingAttributes.cs
- CatalogZoneDesigner.cs
- ChildTable.cs
- ConstructorExpr.cs
- LocationChangedEventArgs.cs
- EntityDataSourceReferenceGroup.cs
- ProvidersHelper.cs
- WindowsListBox.cs
- SplitContainer.cs
- MonthChangedEventArgs.cs
- TrustManagerPromptUI.cs
- ListViewItemSelectionChangedEvent.cs
- FileChangesMonitor.cs
- DllNotFoundException.cs
- HuffCodec.cs
- DesignerListAdapter.cs
- LinqExpressionNormalizer.cs
- WebSysDescriptionAttribute.cs
- WorkflowMessageEventArgs.cs
- PagedDataSource.cs
- RowCache.cs
- AutoGeneratedFieldProperties.cs
- ScopelessEnumAttribute.cs
- InternalEnumValidator.cs
- externdll.cs
- DrawingContextDrawingContextWalker.cs
- StringDictionaryWithComparer.cs
- ConnectionStringsExpressionBuilder.cs
- FileVersionInfo.cs
- ValueUnavailableException.cs
- _Rfc2616CacheValidators.cs
- updateconfighost.cs
- WebPartsPersonalization.cs
- XamlTemplateSerializer.cs
- ColumnWidthChangingEvent.cs
- DataKeyArray.cs
- DataPager.cs
- CustomValidator.cs
- CustomErrorsSectionWrapper.cs
- RSAOAEPKeyExchangeFormatter.cs
- SimpleMailWebEventProvider.cs
- XPathScanner.cs
- DynamicQueryableWrapper.cs
- ServiceHttpModule.cs
- DataRow.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- CqlParser.cs
- PreservationFileReader.cs
- AuditLogLocation.cs
- HtmlInputSubmit.cs
- DecoderReplacementFallback.cs
- PermissionSetTriple.cs
- ToggleButton.cs
- WebPartConnectionsCancelVerb.cs
- InternalDispatchObject.cs
- SiteMembershipCondition.cs
- dsa.cs
- Triplet.cs
- FillBehavior.cs
- PointUtil.cs
- StorageEntityContainerMapping.cs
- ShutDownListener.cs
- StringAnimationBase.cs
- SaveWorkflowCommand.cs
- BasicExpandProvider.cs
- X509CertificateCollection.cs
- ReversePositionQuery.cs
- Rfc2898DeriveBytes.cs
- RelationshipEndCollection.cs
- FileClassifier.cs
- Cursors.cs
- RemotingConfigParser.cs
- ContextMenuAutomationPeer.cs
- TextStore.cs
- ProtocolProfile.cs
- Literal.cs
- FamilyTypefaceCollection.cs
- FontCacheUtil.cs
- AxImporter.cs
- SqlUtils.cs
- LoginDesignerUtil.cs
- RegistrySecurity.cs
- RelatedImageListAttribute.cs
- IdentityHolder.cs
- TouchDevice.cs
- DataGridDesigner.cs
- PathData.cs
- DbProviderConfigurationHandler.cs
- InternalConfigSettingsFactory.cs
- OrthographicCamera.cs
- RegexGroup.cs