Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CompatibleIComparer.cs
- XPathNodeList.cs
- ExceptionTrace.cs
- ProxySimple.cs
- CustomCredentialPolicy.cs
- SQLBinary.cs
- DebugViewWriter.cs
- DropDownList.cs
- WmfPlaceableFileHeader.cs
- DataKey.cs
- DictionaryBase.cs
- ToolboxItemCollection.cs
- TileBrush.cs
- IsolatedStorageFilePermission.cs
- PublishLicense.cs
- WsdlServiceChannelBuilder.cs
- XPathQilFactory.cs
- MatrixAnimationUsingKeyFrames.cs
- NamespaceEmitter.cs
- XmlDomTextWriter.cs
- PropertyItem.cs
- sqlmetadatafactory.cs
- MouseButtonEventArgs.cs
- BamlVersionHeader.cs
- MachineSettingsSection.cs
- RoleGroup.cs
- TypeToken.cs
- InputMethod.cs
- HttpRequestCacheValidator.cs
- NavigationPropertyEmitter.cs
- EntityDataSourceSelectingEventArgs.cs
- HideDisabledControlAdapter.cs
- ToolStripProgressBar.cs
- TextBoxRenderer.cs
- PartialCachingAttribute.cs
- TiffBitmapDecoder.cs
- Script.cs
- InputReportEventArgs.cs
- StringStorage.cs
- UIElementPropertyUndoUnit.cs
- SecureStringHasher.cs
- SoapHelper.cs
- CngProperty.cs
- AppSettingsExpressionEditor.cs
- DictionaryEntry.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- PathFigureCollectionConverter.cs
- LocationFactory.cs
- FileChangesMonitor.cs
- MainMenu.cs
- MatrixTransform3D.cs
- XPathNodeList.cs
- CaseExpr.cs
- ThreadStateException.cs
- DesignerPainter.cs
- MemberBinding.cs
- StartUpEventArgs.cs
- MenuAutomationPeer.cs
- StringArrayConverter.cs
- FunctionNode.cs
- StrongNameIdentityPermission.cs
- mediaclock.cs
- TextEditorThreadLocalStore.cs
- UmAlQuraCalendar.cs
- XmlILModule.cs
- HttpDebugHandler.cs
- COM2Properties.cs
- WorkflowWebService.cs
- ExtenderControl.cs
- ObjectListGeneralPage.cs
- HighContrastHelper.cs
- StreamInfo.cs
- DisplayInformation.cs
- MatcherBuilder.cs
- MethodInfo.cs
- WpfXamlMember.cs
- ParserOptions.cs
- MissingManifestResourceException.cs
- ProtectedConfiguration.cs
- XPathArrayIterator.cs
- XmlDataLoader.cs
- Geometry.cs
- ProcessingInstructionAction.cs
- EventProviderClassic.cs
- EntitySet.cs
- Ray3DHitTestResult.cs
- XmlException.cs
- DurableServiceAttribute.cs
- WorkflowTransactionOptions.cs
- SaveFileDialog.cs
- XmlCountingReader.cs
- XhtmlBasicLiteralTextAdapter.cs
- TextEditorMouse.cs
- StructuredProperty.cs
- DataGridViewHeaderCell.cs
- CustomCredentialPolicy.cs
- PriorityQueue.cs
- TagMapInfo.cs
- GroupBoxRenderer.cs
- XamlPointCollectionSerializer.cs