Code:
/ FX-1434 / FX-1434 / 1.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
- SettingsSection.cs
- PositiveTimeSpanValidator.cs
- Preprocessor.cs
- BuildResultCache.cs
- LogWriteRestartAreaState.cs
- DbConnectionPoolGroup.cs
- login.cs
- IconEditor.cs
- CompressStream.cs
- IndexerNameAttribute.cs
- PopupRootAutomationPeer.cs
- FontSourceCollection.cs
- ImageAttributes.cs
- RulePatternOps.cs
- GridViewColumnHeader.cs
- WebBrowserPermission.cs
- SessionStateSection.cs
- BaseDataBoundControl.cs
- DictionaryCustomTypeDescriptor.cs
- Group.cs
- Crc32Helper.cs
- ChannelManagerHelpers.cs
- SelectorItemAutomationPeer.cs
- Variant.cs
- EntityConnection.cs
- IpcChannel.cs
- ViewGenResults.cs
- WebControlsSection.cs
- Grid.cs
- SqlErrorCollection.cs
- ImportRequest.cs
- ThreadStartException.cs
- DbParameterCollection.cs
- Directory.cs
- ProcessHost.cs
- DataMisalignedException.cs
- CodeActivityMetadata.cs
- DescriptionAttribute.cs
- RequestQueue.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ParsedRoute.cs
- CompositeScriptReference.cs
- UnsafeNativeMethods.cs
- NamespaceMapping.cs
- MatchingStyle.cs
- DbConnectionInternal.cs
- DataRecordInternal.cs
- DataGridViewElement.cs
- __ComObject.cs
- Pipe.cs
- SystemParameters.cs
- DataControlExtensions.cs
- Int32RectConverter.cs
- XmlSchemaAnnotated.cs
- DrawingImage.cs
- Token.cs
- SendReply.cs
- PasswordBoxAutomationPeer.cs
- TaskFileService.cs
- WinFormsSecurity.cs
- HttpRequestBase.cs
- Convert.cs
- TdsParserSessionPool.cs
- WebHttpBindingCollectionElement.cs
- WindowsListViewItem.cs
- CodeDomSerializerException.cs
- InvalidComObjectException.cs
- RC2CryptoServiceProvider.cs
- ListControlDataBindingHandler.cs
- VisualStyleRenderer.cs
- OleDbEnumerator.cs
- AppDomainGrammarProxy.cs
- RealizationDrawingContextWalker.cs
- ThreadNeutralSemaphore.cs
- ThousandthOfEmRealDoubles.cs
- PeerUnsafeNativeMethods.cs
- HttpCachePolicy.cs
- XsltOutput.cs
- OutputWindow.cs
- WebEventCodes.cs
- AppDomainManager.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ParameterCollection.cs
- DeviceSpecific.cs
- StringConverter.cs
- HtmlTable.cs
- CharEntityEncoderFallback.cs
- ManipulationVelocities.cs
- CodeTypeParameterCollection.cs
- WmlObjectListAdapter.cs
- DataGridViewCellCancelEventArgs.cs
- WmlPanelAdapter.cs
- TimeSpanParse.cs
- PointCollectionValueSerializer.cs
- FilterQuery.cs
- Timer.cs
- TrackingConditionCollection.cs
- DuplicateWaitObjectException.cs
- EmbeddedMailObject.cs
- CLSCompliantAttribute.cs