Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- SecurityDocument.cs
- TextParagraphProperties.cs
- Scheduling.cs
- ClientTargetSection.cs
- WebPartVerbCollection.cs
- BamlLocalizableResourceKey.cs
- ValueTypeFixupInfo.cs
- XmlSchemaObjectCollection.cs
- DataSourceView.cs
- ClientUtils.cs
- GraphicsContainer.cs
- SelectorItemAutomationPeer.cs
- SimpleLine.cs
- CallTemplateAction.cs
- ChannelParameterCollection.cs
- TransportReplyChannelAcceptor.cs
- SiteMembershipCondition.cs
- VersionedStream.cs
- MSHTMLHost.cs
- ChildTable.cs
- SingleAnimationUsingKeyFrames.cs
- OracleConnectionString.cs
- ClientProxyGenerator.cs
- PeerNearMe.cs
- Triplet.cs
- XmlDataSourceDesigner.cs
- PageParserFilter.cs
- TriState.cs
- SymbolEqualComparer.cs
- StrokeNodeOperations2.cs
- FixedLineResult.cs
- NumericUpDownAcceleration.cs
- PackagingUtilities.cs
- DefaultSerializationProviderAttribute.cs
- SByteStorage.cs
- WebPartDescriptionCollection.cs
- ComPlusTypeLoader.cs
- Error.cs
- Span.cs
- PresentationAppDomainManager.cs
- TableItemProviderWrapper.cs
- StateWorkerRequest.cs
- EmissiveMaterial.cs
- ActionFrame.cs
- AxHost.cs
- DES.cs
- DataTableExtensions.cs
- LoginCancelEventArgs.cs
- TraceListener.cs
- ListGeneralPage.cs
- Quaternion.cs
- SafeProcessHandle.cs
- ZipPackage.cs
- GenericUriParser.cs
- HtmlInputRadioButton.cs
- Timeline.cs
- ClassData.cs
- DetailsViewModeEventArgs.cs
- ContentFileHelper.cs
- SelectionWordBreaker.cs
- StyleCollection.cs
- XmlSerializerAssemblyAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- WebServiceMethodData.cs
- URLIdentityPermission.cs
- _NetworkingPerfCounters.cs
- Timer.cs
- SystemIcmpV6Statistics.cs
- MessageDesigner.cs
- MsmqBindingFilter.cs
- Msec.cs
- FastPropertyAccessor.cs
- NullableDoubleAverageAggregationOperator.cs
- PeerPresenceInfo.cs
- InputScopeConverter.cs
- messageonlyhwndwrapper.cs
- BounceEase.cs
- OciEnlistContext.cs
- ConfigXmlDocument.cs
- OnOperation.cs
- FamilyMapCollection.cs
- ExpressionList.cs
- TextEmbeddedObject.cs
- XPathNavigator.cs
- ToolStripGripRenderEventArgs.cs
- EventBookmark.cs
- ChangeInterceptorAttribute.cs
- DbMetaDataColumnNames.cs
- ChineseLunisolarCalendar.cs
- HttpListenerResponse.cs
- RequestCacheEntry.cs
- DataDocumentXPathNavigator.cs
- CodeSnippetTypeMember.cs
- VScrollBar.cs
- CacheOutputQuery.cs
- HMAC.cs
- CmsInterop.cs
- BitArray.cs
- WebPartExportVerb.cs
- Convert.cs