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
- AppDomainShutdownMonitor.cs
- UInt64.cs
- LogEntryHeaderDeserializer.cs
- DataGridViewButtonCell.cs
- DbParameterHelper.cs
- Int32CollectionConverter.cs
- FormViewDeletedEventArgs.cs
- FocusManager.cs
- XmlSchemaInfo.cs
- NetPipeSectionData.cs
- AbsoluteQuery.cs
- SerialStream.cs
- UTF8Encoding.cs
- StylusCollection.cs
- WebPartTransformer.cs
- ProfileGroupSettings.cs
- ValidatorCollection.cs
- XmlSchemaAttribute.cs
- ButtonBaseAutomationPeer.cs
- BinaryObjectInfo.cs
- VersionedStreamOwner.cs
- SystemKeyConverter.cs
- SignatureGenerator.cs
- RoleGroupCollection.cs
- FormattedTextSymbols.cs
- FontStyleConverter.cs
- SaveFileDialog.cs
- CrossSiteScriptingValidation.cs
- HttpListenerPrefixCollection.cs
- _ConnectOverlappedAsyncResult.cs
- Compress.cs
- TimersDescriptionAttribute.cs
- SelectionRangeConverter.cs
- TryLoadRunnableWorkflowCommand.cs
- OleDbException.cs
- RequestContext.cs
- UMPAttributes.cs
- connectionpool.cs
- HitTestParameters3D.cs
- BufferedGraphicsContext.cs
- SelectedPathEditor.cs
- PropertyTabAttribute.cs
- TableParagraph.cs
- ToolStripStatusLabel.cs
- ButtonChrome.cs
- RegexMatch.cs
- OdbcFactory.cs
- HashMembershipCondition.cs
- Tool.cs
- ManagedIStream.cs
- Pkcs9Attribute.cs
- FamilyMap.cs
- EnterpriseServicesHelper.cs
- LogicalCallContext.cs
- QueryOutputWriter.cs
- WebMessageEncodingBindingElement.cs
- XmlArrayItemAttributes.cs
- Attributes.cs
- DoubleUtil.cs
- CustomLineCap.cs
- QueryResults.cs
- MenuCommand.cs
- ListenDesigner.cs
- ToolStripPanelRenderEventArgs.cs
- safesecurityhelperavalon.cs
- BitConverter.cs
- CallContext.cs
- IgnoreFlushAndCloseStream.cs
- HtmlWindowCollection.cs
- XPathScanner.cs
- RelationshipDetailsRow.cs
- CommandEventArgs.cs
- MemberHolder.cs
- Point3DAnimationBase.cs
- SettingsProviderCollection.cs
- Double.cs
- FramingChannels.cs
- StyleXamlParser.cs
- DatePickerAutomationPeer.cs
- HostingEnvironmentException.cs
- EventKeyword.cs
- WebBrowserPermission.cs
- SecurityManager.cs
- ObjectComplexPropertyMapping.cs
- HandledMouseEvent.cs
- HtmlInputText.cs
- Util.cs
- XamlReaderHelper.cs
- CodeStatementCollection.cs
- OdbcConnectionString.cs
- ObjectNotFoundException.cs
- XmlSchemaCollection.cs
- Proxy.cs
- ButtonDesigner.cs
- Simplifier.cs
- ByteRangeDownloader.cs
- ExpiredSecurityTokenException.cs
- CqlParser.cs
- HebrewCalendar.cs
- DataListCommandEventArgs.cs