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
- ToolstripProfessionalRenderer.cs
- ReadOnlyDataSourceView.cs
- TextTabProperties.cs
- BulletChrome.cs
- MarkupCompilePass2.cs
- BinaryCommonClasses.cs
- DrawingCollection.cs
- DataGrid.cs
- CasesDictionary.cs
- FixedTextPointer.cs
- BinaryParser.cs
- Lease.cs
- ContextStack.cs
- ListViewGroupConverter.cs
- Opcode.cs
- _AuthenticationState.cs
- HandleRef.cs
- WebPartCatalogAddVerb.cs
- HttpDebugHandler.cs
- VisualTarget.cs
- ScriptIgnoreAttribute.cs
- ImageSourceValueSerializer.cs
- BaseContextMenu.cs
- BitmapEffectState.cs
- UnaryOperationBinder.cs
- CharacterBufferReference.cs
- VirtualPathProvider.cs
- documentation.cs
- DispatcherTimer.cs
- ScriptBehaviorDescriptor.cs
- DateTimeConverter.cs
- XmlSchemaGroup.cs
- LogFlushAsyncResult.cs
- PersonalizationStateInfo.cs
- HttpDebugHandler.cs
- TrackingDataItem.cs
- SafeLocalMemHandle.cs
- _NestedSingleAsyncResult.cs
- CodeSubDirectoriesCollection.cs
- ProviderConnectionPoint.cs
- System.Data_BID.cs
- TailPinnedEventArgs.cs
- FileLogRecordEnumerator.cs
- TextServicesDisplayAttributePropertyRanges.cs
- RightsManagementPermission.cs
- CodeExpressionCollection.cs
- ToolBarButtonClickEvent.cs
- SynchronizingStream.cs
- LoginView.cs
- UriTemplateHelpers.cs
- EventData.cs
- RectIndependentAnimationStorage.cs
- PersonalizationProviderCollection.cs
- WindowsScroll.cs
- WebPartConnectionsCancelEventArgs.cs
- PageParser.cs
- EmptyStringExpandableObjectConverter.cs
- SafeThreadHandle.cs
- DesignerProperties.cs
- GacUtil.cs
- BaseConfigurationRecord.cs
- ThousandthOfEmRealPoints.cs
- StylusButtonCollection.cs
- ReflectionTypeLoadException.cs
- BorderGapMaskConverter.cs
- QuadraticBezierSegment.cs
- VisualTarget.cs
- ExpressionPrefixAttribute.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ExtendedPropertyDescriptor.cs
- LinqDataSourceDisposeEventArgs.cs
- ExclusiveCanonicalizationTransform.cs
- WebServiceClientProxyGenerator.cs
- StaticFileHandler.cs
- Int32Storage.cs
- DynamicResourceExtension.cs
- RetrieveVirtualItemEventArgs.cs
- XamlFigureLengthSerializer.cs
- XsltInput.cs
- WindowsToolbar.cs
- BasicCellRelation.cs
- AttributeUsageAttribute.cs
- RoleGroup.cs
- DataSpaceManager.cs
- MorphHelper.cs
- SimpleTextLine.cs
- MdImport.cs
- HttpCachePolicyElement.cs
- ElementUtil.cs
- SchemaImporterExtensionsSection.cs
- SimpleNameService.cs
- SiteMapNode.cs
- Policy.cs
- SimpleRecyclingCache.cs
- FieldReference.cs
- BufferedStream.cs
- Point3DCollection.cs
- RequestCachePolicyConverter.cs
- CodeObject.cs
- HttpHandlersSection.cs