Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DayRenderEvent.cs
- SqlCachedBuffer.cs
- MergeFailedEvent.cs
- hebrewshape.cs
- TypedServiceChannelBuilder.cs
- WebSysDefaultValueAttribute.cs
- CollectionBuilder.cs
- SQLByte.cs
- MouseBinding.cs
- ConsumerConnectionPointCollection.cs
- HelpEvent.cs
- ParseElement.cs
- RoleService.cs
- errorpatternmatcher.cs
- MouseOverProperty.cs
- IISMapPath.cs
- AuthenticationModuleElementCollection.cs
- RtfToken.cs
- FamilyTypeface.cs
- AnonymousIdentificationModule.cs
- XmlSchemaImporter.cs
- ByteStorage.cs
- Typeface.cs
- CompareInfo.cs
- XsltException.cs
- CompilerInfo.cs
- WorkflowServiceBehavior.cs
- DeleteIndexBinder.cs
- ValidatorCompatibilityHelper.cs
- FontStretch.cs
- AnnotationComponentManager.cs
- TripleDESCryptoServiceProvider.cs
- SaveLedgerEntryRequest.cs
- OdbcHandle.cs
- SequentialActivityDesigner.cs
- DesignTimeDataBinding.cs
- SqlRowUpdatedEvent.cs
- WebPartRestoreVerb.cs
- CleanUpVirtualizedItemEventArgs.cs
- ObjectComplexPropertyMapping.cs
- Win32.cs
- XmlDataFileEditor.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- NativeMethods.cs
- ImageSource.cs
- ObjectDataSourceChooseTypePanel.cs
- SqlInternalConnectionTds.cs
- SoapHttpTransportImporter.cs
- ImageMetadata.cs
- TextRangeSerialization.cs
- FormatVersion.cs
- RequestBringIntoViewEventArgs.cs
- XamlReader.cs
- Properties.cs
- SmiEventSink.cs
- HtmlSelect.cs
- XomlCompilerError.cs
- OletxTransactionFormatter.cs
- Annotation.cs
- CategoryNameCollection.cs
- DesignerTransactionCloseEvent.cs
- ProcessHostConfigUtils.cs
- RequestQueue.cs
- RepeaterCommandEventArgs.cs
- OleDbParameterCollection.cs
- XD.cs
- ControlParameter.cs
- FlagsAttribute.cs
- XmlJsonWriter.cs
- CodeTypeParameter.cs
- FixedPageAutomationPeer.cs
- SmtpReplyReaderFactory.cs
- BaseCAMarshaler.cs
- _Win32.cs
- PropertyIDSet.cs
- ContentControl.cs
- EventHandlerList.cs
- Zone.cs
- AttributeCollection.cs
- COMException.cs
- Typeface.cs
- ViewGenResults.cs
- RawKeyboardInputReport.cs
- TextControlDesigner.cs
- HighContrastHelper.cs
- KeyGestureConverter.cs
- PageParser.cs
- ToolStripContainer.cs
- backend.cs
- xmlglyphRunInfo.cs
- InheritedPropertyChangedEventArgs.cs
- bindurihelper.cs
- PageStatePersister.cs
- SmtpAuthenticationManager.cs
- WinEventWrap.cs
- ListViewItem.cs
- TouchesOverProperty.cs
- CommandHelpers.cs
- TextFormatterImp.cs
- EntityParameter.cs