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
- XmlSchemaValidator.cs
- DataGridRowHeaderAutomationPeer.cs
- DocumentPageHost.cs
- smtppermission.cs
- OleCmdHelper.cs
- IntSecurity.cs
- BoolExpression.cs
- SpellCheck.cs
- ArithmeticException.cs
- OleDbParameter.cs
- Geometry.cs
- PreservationFileReader.cs
- OracleCommandBuilder.cs
- EdmPropertyAttribute.cs
- MarkupCompilePass2.cs
- WorkItem.cs
- AspNetHostingPermission.cs
- ProxyFragment.cs
- SqlErrorCollection.cs
- SessionParameter.cs
- UpDownBaseDesigner.cs
- RemoteWebConfigurationHostServer.cs
- CryptoHandle.cs
- WinFormsComponentEditor.cs
- Regex.cs
- FixedSOMTextRun.cs
- DateTimeFormatInfo.cs
- IMembershipProvider.cs
- HttpClientCertificate.cs
- DefaultValueConverter.cs
- SystemGatewayIPAddressInformation.cs
- DBSchemaRow.cs
- ProfileManager.cs
- BooleanStorage.cs
- CodeMethodInvokeExpression.cs
- FilteredXmlReader.cs
- BigInt.cs
- EventMappingSettings.cs
- Base64Decoder.cs
- PkcsMisc.cs
- _StreamFramer.cs
- MethodToken.cs
- StickyNoteAnnotations.cs
- DataGridViewCellFormattingEventArgs.cs
- InvalidCommandTreeException.cs
- ProviderConnectionPoint.cs
- ContainerParaClient.cs
- View.cs
- CryptoStream.cs
- ISO2022Encoding.cs
- WindowsGraphics.cs
- CallbackDebugElement.cs
- BoundsDrawingContextWalker.cs
- DriveNotFoundException.cs
- SelectionProcessor.cs
- DeferredElementTreeState.cs
- ActiveXContainer.cs
- ACE.cs
- base64Transforms.cs
- DataBindingCollection.cs
- MonthChangedEventArgs.cs
- PeerPresenceInfo.cs
- PropertyEmitterBase.cs
- MsmqElementBase.cs
- ProvidersHelper.cs
- RequestQueryParser.cs
- ReferenceService.cs
- XmlWhitespace.cs
- SiteMembershipCondition.cs
- SqlError.cs
- ProcessHostMapPath.cs
- URLMembershipCondition.cs
- KeyboardEventArgs.cs
- SqlCommandSet.cs
- ContractCodeDomInfo.cs
- RenderContext.cs
- DataGridColumnCollectionEditor.cs
- SessionSwitchEventArgs.cs
- WithStatement.cs
- HuffmanTree.cs
- PageContentCollection.cs
- CodeSubDirectory.cs
- HashHelper.cs
- RefExpr.cs
- TimeSpanSecondsConverter.cs
- NativeMethods.cs
- GridViewRowEventArgs.cs
- XmlCDATASection.cs
- WorkflowDesignerColors.cs
- MenuCommands.cs
- MsmqInputSessionChannelListener.cs
- HttpContextBase.cs
- M3DUtil.cs
- WebConfigurationHost.cs
- RuleValidation.cs
- PointAnimationBase.cs
- QuaternionAnimation.cs
- DesignerSerializationOptionsAttribute.cs
- PageCodeDomTreeGenerator.cs
- HtmlMeta.cs