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
- DispatchRuntime.cs
- FtpWebRequest.cs
- Subset.cs
- UrlAuthFailedErrorFormatter.cs
- XmlQueryType.cs
- PtsPage.cs
- FormatSelectingMessageInspector.cs
- UnaryOperationBinder.cs
- NopReturnReader.cs
- _NegoStream.cs
- TreeIterator.cs
- TimeoutValidationAttribute.cs
- MailDefinition.cs
- MetafileHeader.cs
- DataControlField.cs
- TextEndOfParagraph.cs
- HtmlTableCellCollection.cs
- TransformValueSerializer.cs
- PublisherIdentityPermission.cs
- BaseParagraph.cs
- FullTextLine.cs
- ApplicationHost.cs
- DataListItemEventArgs.cs
- Parallel.cs
- TableRow.cs
- UrlAuthorizationModule.cs
- NullableIntAverageAggregationOperator.cs
- DbTransaction.cs
- UTF8Encoding.cs
- InputProcessorProfilesLoader.cs
- XmlIncludeAttribute.cs
- SQLDecimalStorage.cs
- COM2TypeInfoProcessor.cs
- HelpKeywordAttribute.cs
- WebPartUserCapability.cs
- TypeSystem.cs
- listitem.cs
- Polygon.cs
- HttpHandlersSection.cs
- BitmapEffectRenderDataResource.cs
- NativeCompoundFileAPIs.cs
- TemplateField.cs
- Duration.cs
- C14NUtil.cs
- ISAPIApplicationHost.cs
- AssemblySettingAttributes.cs
- Accessible.cs
- Pen.cs
- ObjectDataSourceSelectingEventArgs.cs
- BridgeDataReader.cs
- ServiceModelEnumValidatorAttribute.cs
- HTTPRemotingHandler.cs
- CacheAxisQuery.cs
- EntityModelBuildProvider.cs
- PropertyIDSet.cs
- InlineCollection.cs
- FacetDescription.cs
- NumberFormatInfo.cs
- MarkupCompilePass1.cs
- CustomAttributeBuilder.cs
- DataShape.cs
- ArrangedElement.cs
- StyleXamlParser.cs
- SmtpAuthenticationManager.cs
- CircleEase.cs
- InfoCardSymmetricCrypto.cs
- TemplateParser.cs
- SecurityException.cs
- DefaultParameterValueAttribute.cs
- DecimalKeyFrameCollection.cs
- CompilerCollection.cs
- ProfileSection.cs
- GeometryHitTestResult.cs
- GraphicsState.cs
- HttpCookie.cs
- DataGridViewComboBoxCell.cs
- TextSelectionProcessor.cs
- XamlDesignerSerializationManager.cs
- NativeMethods.cs
- TextContainer.cs
- SynchronizationContext.cs
- CommandSet.cs
- UIPermission.cs
- NotifyParentPropertyAttribute.cs
- EntityObject.cs
- Paragraph.cs
- WindowsFormsSectionHandler.cs
- InArgumentConverter.cs
- X509ChainElement.cs
- OneOfConst.cs
- DockPanel.cs
- XmlStreamStore.cs
- ChameleonKey.cs
- DataGridViewCheckBoxCell.cs
- MessageBox.cs
- DropTarget.cs
- XamlDesignerSerializationManager.cs
- ResourceSet.cs
- WebRequestModuleElementCollection.cs
- XPathDescendantIterator.cs