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
- Expression.cs
- GeometryConverter.cs
- NotSupportedException.cs
- DataSet.cs
- ProgressPage.cs
- ScrollChrome.cs
- DesignerDeviceConfig.cs
- BamlResourceContent.cs
- RequestResponse.cs
- AspProxy.cs
- SessionKeyExpiredException.cs
- DataServiceQueryOfT.cs
- OleDbParameterCollection.cs
- DataGridCell.cs
- RequestCacheManager.cs
- DataGridViewCellLinkedList.cs
- ProtocolsConfigurationEntry.cs
- BackgroundWorker.cs
- DependencyObject.cs
- CompilationUtil.cs
- InternalPolicyElement.cs
- Config.cs
- PreparingEnlistment.cs
- GetParentChain.cs
- TextRunCache.cs
- Rotation3D.cs
- XmlMtomWriter.cs
- ServiceErrorHandler.cs
- VisualBasicReference.cs
- DataGridViewSortCompareEventArgs.cs
- StyleHelper.cs
- DiscoveryExceptionDictionary.cs
- Regex.cs
- HostedElements.cs
- MediaContextNotificationWindow.cs
- PointLightBase.cs
- XmlSchemaObject.cs
- ScaleTransform3D.cs
- ImageSourceValueSerializer.cs
- SafeIUnknown.cs
- Border.cs
- AssertSection.cs
- LabelEditEvent.cs
- CompareInfo.cs
- HScrollBar.cs
- XmlSchemaImporter.cs
- WeakReference.cs
- WindowCollection.cs
- EntityContainerEntitySet.cs
- PopOutPanel.cs
- RightsManagementEncryptionTransform.cs
- RemotingSurrogateSelector.cs
- _NTAuthentication.cs
- DynamicDataExtensions.cs
- SQLMoneyStorage.cs
- Image.cs
- WebFormsRootDesigner.cs
- ObjectAnimationUsingKeyFrames.cs
- ExponentialEase.cs
- UriTemplatePathSegment.cs
- Literal.cs
- OledbConnectionStringbuilder.cs
- WebZone.cs
- CrossSiteScriptingValidation.cs
- Message.cs
- XmlUtf8RawTextWriter.cs
- precedingquery.cs
- ListParagraph.cs
- ReadOnlyCollection.cs
- TagPrefixInfo.cs
- PriorityQueue.cs
- LicenseManager.cs
- RegexRunner.cs
- Invariant.cs
- DocumentScope.cs
- Point.cs
- PatternMatchRules.cs
- TargetPerspective.cs
- DoubleAnimationClockResource.cs
- QueryOutputWriter.cs
- Win32Native.cs
- ParameterBuilder.cs
- SafeProcessHandle.cs
- ArglessEventHandlerProxy.cs
- RelatedEnd.cs
- DecimalAnimationBase.cs
- DbProviderFactoriesConfigurationHandler.cs
- ManagedCodeMarkers.cs
- Enumerable.cs
- DependencySource.cs
- MemberMaps.cs
- SiteMapDataSourceView.cs
- UserMapPath.cs
- BitmapEffectGeneralTransform.cs
- RegexInterpreter.cs
- DataServiceProcessingPipelineEventArgs.cs
- NoResizeSelectionBorderGlyph.cs
- WebPartHelpVerb.cs
- ToolStripDropDownClosingEventArgs.cs
- RunInstallerAttribute.cs