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
- ManagementPath.cs
- Padding.cs
- JsonStringDataContract.cs
- NonParentingControl.cs
- DecimalStorage.cs
- ProviderMetadata.cs
- SignatureHelper.cs
- SecurityPolicySection.cs
- XmlSchemaCollection.cs
- Version.cs
- FileInfo.cs
- HttpCachePolicyElement.cs
- PolygonHotSpot.cs
- InheritanceAttribute.cs
- ProfileServiceManager.cs
- SpinWait.cs
- TraceLevelStore.cs
- SchemaHelper.cs
- Material.cs
- BuildManager.cs
- XamlTreeBuilder.cs
- AccessorTable.cs
- WebPartZone.cs
- CellParagraph.cs
- ScrollData.cs
- ConditionalWeakTable.cs
- XmlNodeChangedEventManager.cs
- WpfWebRequestHelper.cs
- Header.cs
- QilPatternVisitor.cs
- FlowLayoutPanel.cs
- AttachmentService.cs
- LicenseException.cs
- OrderablePartitioner.cs
- OutputCacheProfileCollection.cs
- DiscoveryDocument.cs
- TabPanel.cs
- DispatcherObject.cs
- RichTextBoxConstants.cs
- PropertyGrid.cs
- DocumentCollection.cs
- DependentList.cs
- ParseHttpDate.cs
- SpinWait.cs
- ContentElement.cs
- Privilege.cs
- CustomLineCap.cs
- CompatibleComparer.cs
- FixedFlowMap.cs
- SingleAnimation.cs
- TableColumnCollectionInternal.cs
- SmtpNetworkElement.cs
- AttributeEmitter.cs
- ThreadAttributes.cs
- Line.cs
- HttpVersion.cs
- SplitContainer.cs
- BufferAllocator.cs
- TableCellAutomationPeer.cs
- Cast.cs
- LogConverter.cs
- HtmlFormWrapper.cs
- LeafCellTreeNode.cs
- CompatibleIComparer.cs
- EventPropertyMap.cs
- RequestTimeoutManager.cs
- Funcletizer.cs
- SessionIDManager.cs
- PersonalizationProvider.cs
- AspNetHostingPermission.cs
- ResourcesBuildProvider.cs
- CommentEmitter.cs
- OracleMonthSpan.cs
- Point3DValueSerializer.cs
- DownloadProgressEventArgs.cs
- DBSchemaTable.cs
- ProgressBarBrushConverter.cs
- LogSwitch.cs
- DataControlImageButton.cs
- FragmentQueryProcessor.cs
- XmlSecureResolver.cs
- QilPatternFactory.cs
- SecurityState.cs
- EntityChangedParams.cs
- XmlSerializerNamespaces.cs
- DataContractSerializerSection.cs
- XmlDictionaryReader.cs
- PropertyGridView.cs
- FixedSOMTextRun.cs
- ReplyChannelBinder.cs
- SchemaImporterExtensionsSection.cs
- AsymmetricSignatureFormatter.cs
- Latin1Encoding.cs
- StateDesigner.TransitionInfo.cs
- cookieexception.cs
- AssemblyCollection.cs
- ReadOnlyDataSource.cs
- WebResourceAttribute.cs
- WizardPanel.cs
- PtsPage.cs