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
- EntityDataSourceView.cs
- ValueHandle.cs
- IMembershipProvider.cs
- AddInAdapter.cs
- StrokeFIndices.cs
- ConfigurationConverterBase.cs
- ImageBrush.cs
- RootBrowserWindowAutomationPeer.cs
- QueryResponse.cs
- BaseConfigurationRecord.cs
- SelectedDatesCollection.cs
- DataGridRowsPresenter.cs
- Matrix3DValueSerializer.cs
- RotateTransform3D.cs
- _HelperAsyncResults.cs
- SQLGuid.cs
- MatrixTransform3D.cs
- ComponentCommands.cs
- _ScatterGatherBuffers.cs
- Exception.cs
- FlowNode.cs
- SpStreamWrapper.cs
- XamlPointCollectionSerializer.cs
- XmlUrlResolver.cs
- ObjectReaderCompiler.cs
- RowSpanVector.cs
- TextEndOfSegment.cs
- HelpKeywordAttribute.cs
- EventDescriptor.cs
- BaseHashHelper.cs
- MatrixUtil.cs
- XmlMapping.cs
- WeakReferenceEnumerator.cs
- ColorMatrix.cs
- CodeIndexerExpression.cs
- Common.cs
- WebPartAuthorizationEventArgs.cs
- Translator.cs
- TraversalRequest.cs
- ConfigXmlWhitespace.cs
- AstNode.cs
- HttpApplication.cs
- SystemException.cs
- PriorityBindingExpression.cs
- XmlDataSource.cs
- List.cs
- BaseTemplateParser.cs
- _NtlmClient.cs
- SingleConverter.cs
- XmlAutoDetectWriter.cs
- TransactionOptions.cs
- MembershipSection.cs
- BaseTransportHeaders.cs
- BrowsableAttribute.cs
- RepeatBehavior.cs
- SchemaObjectWriter.cs
- SqlExpressionNullability.cs
- _NegoState.cs
- TextTreeText.cs
- XmlQueryTypeFactory.cs
- sqlcontext.cs
- SqlWebEventProvider.cs
- Exceptions.cs
- PackageFilter.cs
- ServiceObjectContainer.cs
- PngBitmapDecoder.cs
- SessionState.cs
- DataServiceRequestException.cs
- LateBoundBitmapDecoder.cs
- StatusBarPanelClickEvent.cs
- SerializationFieldInfo.cs
- RangeValueProviderWrapper.cs
- XamlTypeMapper.cs
- SessionPageStateSection.cs
- Query.cs
- ISAPIApplicationHost.cs
- EnumBuilder.cs
- ButtonFlatAdapter.cs
- COAUTHINFO.cs
- MsmqIntegrationBinding.cs
- FontStyle.cs
- SurrogateEncoder.cs
- ToolstripProfessionalRenderer.cs
- FixedSOMContainer.cs
- NativeMethods.cs
- OperatingSystemVersionCheck.cs
- XmlConvert.cs
- FileDialog_Vista_Interop.cs
- HtmlInputHidden.cs
- RuntimeHandles.cs
- UInt64.cs
- WorkBatch.cs
- ImageMapEventArgs.cs
- DefaultValueConverter.cs
- StaticTextPointer.cs
- KeySpline.cs
- OpenTypeLayoutCache.cs
- ParseChildrenAsPropertiesAttribute.cs
- HttpHeaderCollection.cs
- PropertyGeneratedEventArgs.cs