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
- HandlerFactoryCache.cs
- CodeCatchClauseCollection.cs
- PageParserFilter.cs
- FilteredDataSetHelper.cs
- recordstatescratchpad.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TraceXPathNavigator.cs
- PropertyToken.cs
- DriveInfo.cs
- TabControlEvent.cs
- DataGridPagerStyle.cs
- HyperLinkDataBindingHandler.cs
- DatagridviewDisplayedBandsData.cs
- SchemaObjectWriter.cs
- TextServicesContext.cs
- HebrewCalendar.cs
- wgx_exports.cs
- OTFRasterizer.cs
- StandardBindingReliableSessionElement.cs
- UTF7Encoding.cs
- TableItemPatternIdentifiers.cs
- XmlStreamNodeWriter.cs
- PackWebResponse.cs
- LocalizedNameDescriptionPair.cs
- WmlPanelAdapter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- LOSFormatter.cs
- BamlBinaryWriter.cs
- DesignerUtility.cs
- TypeDependencyAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- Bold.cs
- WSSecurityPolicy12.cs
- DefaultTraceListener.cs
- PointHitTestParameters.cs
- ReadOnlyDataSourceView.cs
- WinInetCache.cs
- DataKey.cs
- FileVersion.cs
- DiscoveryInnerClientAdhocCD1.cs
- ShapingWorkspace.cs
- KeyboardEventArgs.cs
- UpDownBaseDesigner.cs
- AQNBuilder.cs
- RadialGradientBrush.cs
- PersonalizablePropertyEntry.cs
- MatrixCamera.cs
- SqlGenericUtil.cs
- Camera.cs
- FullTrustAssembliesSection.cs
- Registry.cs
- XPathDocumentIterator.cs
- SelectingProviderEventArgs.cs
- HttpUnhandledOperationInvoker.cs
- PageSettings.cs
- ErrorHandler.cs
- MatrixTransform3D.cs
- NullableConverter.cs
- Task.cs
- NativeMethods.cs
- TextContainerChangedEventArgs.cs
- FlowDocumentFormatter.cs
- AttributeEmitter.cs
- PolicyStatement.cs
- Positioning.cs
- DynamicMethod.cs
- AppDomainUnloadedException.cs
- EventDescriptor.cs
- SeekStoryboard.cs
- ReflectionServiceProvider.cs
- DataServiceResponse.cs
- FormsAuthenticationModule.cs
- DateTimeFormat.cs
- XmlSubtreeReader.cs
- RenameRuleObjectDialog.cs
- VisualStyleElement.cs
- unitconverter.cs
- CallSite.cs
- XamlTemplateSerializer.cs
- OdbcHandle.cs
- DirtyTextRange.cs
- PathSegment.cs
- Renderer.cs
- DesignRelationCollection.cs
- Number.cs
- EncoderFallback.cs
- HtmlTextViewAdapter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CodeParameterDeclarationExpressionCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- MediaTimeline.cs
- MessageSecurityOverTcpElement.cs
- Int16Animation.cs
- X509Certificate2Collection.cs
- Visual.cs
- DataGridViewRowPrePaintEventArgs.cs
- BindingListCollectionView.cs
- FormatConvertedBitmap.cs
- Compiler.cs
- InvalidComObjectException.cs