Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- KeySpline.cs
- PageRequestManager.cs
- AlgoModule.cs
- EncryptedKey.cs
- ToolboxItemCollection.cs
- CurrencyWrapper.cs
- validation.cs
- WinFormsSpinner.cs
- CodeRegionDirective.cs
- SapiRecoContext.cs
- SqlCommandSet.cs
- UIElement3DAutomationPeer.cs
- PropertyManager.cs
- BindToObject.cs
- WriterOutput.cs
- serverconfig.cs
- MenuTracker.cs
- GraphicsContext.cs
- DataGridViewCellValidatingEventArgs.cs
- MarkupCompilePass1.cs
- ResourcePart.cs
- ImportFileRequest.cs
- PropertyChangingEventArgs.cs
- WebBrowserEvent.cs
- RIPEMD160Managed.cs
- Property.cs
- ProfilePropertyNameValidator.cs
- TaskHelper.cs
- DrawItemEvent.cs
- SafeRegistryHandle.cs
- ImageCreator.cs
- WebConfigurationFileMap.cs
- CallbackValidator.cs
- ForeignKeyConstraint.cs
- configsystem.cs
- CodeExporter.cs
- AppDomainProtocolHandler.cs
- TokenBasedSet.cs
- SqlOuterApplyReducer.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- AsymmetricSignatureDeformatter.cs
- Registry.cs
- HttpCapabilitiesBase.cs
- DynamicQueryStringParameter.cs
- GradientPanel.cs
- WsdlBuildProvider.cs
- CacheSection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DesignerPerfEventProvider.cs
- ServicePoint.cs
- LocalIdKeyIdentifierClause.cs
- WsdlExporter.cs
- ImportContext.cs
- ListViewInsertedEventArgs.cs
- RegexCode.cs
- CompositeTypefaceMetrics.cs
- SuppressIldasmAttribute.cs
- ResourceReferenceKeyNotFoundException.cs
- SamlSerializer.cs
- EncoderNLS.cs
- DrawListViewColumnHeaderEventArgs.cs
- arabicshape.cs
- KeyValuePair.cs
- SystemIPAddressInformation.cs
- RestHandler.cs
- DeviceContext2.cs
- Exceptions.cs
- SmiGettersStream.cs
- SvcFileManager.cs
- MethodCallTranslator.cs
- counter.cs
- UnsafePeerToPeerMethods.cs
- SafeLibraryHandle.cs
- WmpBitmapEncoder.cs
- SamlSecurityToken.cs
- TemplateBamlTreeBuilder.cs
- PathFigure.cs
- DataTableMapping.cs
- StorageInfo.cs
- SQLByteStorage.cs
- PropertyRecord.cs
- complextypematerializer.cs
- HttpDebugHandler.cs
- LineSegment.cs
- ConnectionPointGlyph.cs
- DbConnectionPoolOptions.cs
- ScrollBar.cs
- EastAsianLunisolarCalendar.cs
- HtmlInputSubmit.cs
- XmlConvert.cs
- PrintControllerWithStatusDialog.cs
- PrintPreviewControl.cs
- IdentityHolder.cs
- DataGridSortCommandEventArgs.cs
- loginstatus.cs
- SizeValueSerializer.cs
- ScrollViewerAutomationPeer.cs
- SystemIPAddressInformation.cs
- LinkButton.cs
- TemplatedEditableDesignerRegion.cs