Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MsmqIntegrationChannelFactory.cs
- DecoderReplacementFallback.cs
- QuaternionAnimation.cs
- ResourceReferenceKeyNotFoundException.cs
- DataGridHeaderBorder.cs
- DocumentApplication.cs
- Ticks.cs
- StandardBindingReliableSessionElement.cs
- Select.cs
- TdsEnums.cs
- SharedPerformanceCounter.cs
- InvalidAsynchronousStateException.cs
- PresentationSource.cs
- ConnectivityStatus.cs
- BindingList.cs
- SmtpCommands.cs
- NetMsmqBindingCollectionElement.cs
- SyndicationDeserializer.cs
- Query.cs
- VisualCollection.cs
- DataGridViewBindingCompleteEventArgs.cs
- InvalidPrinterException.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ExtendedProtectionPolicyElement.cs
- CodeCatchClause.cs
- FormViewUpdatedEventArgs.cs
- ReferenceCountedObject.cs
- MatrixStack.cs
- PropertyTabAttribute.cs
- TraceData.cs
- BitmapCodecInfo.cs
- View.cs
- HandleCollector.cs
- KernelTypeValidation.cs
- ISAPIRuntime.cs
- ProgressBar.cs
- FastEncoder.cs
- TabPage.cs
- ScaleTransform3D.cs
- ManagementEventArgs.cs
- XamlFigureLengthSerializer.cs
- SqlXml.cs
- SqlFormatter.cs
- CurrentChangingEventArgs.cs
- LinearGradientBrush.cs
- HtmlToClrEventProxy.cs
- ReplacementText.cs
- PageAsyncTask.cs
- InterleavedZipPartStream.cs
- WebPartHelpVerb.cs
- BooleanSwitch.cs
- FontStretches.cs
- FtpRequestCacheValidator.cs
- CursorConverter.cs
- Style.cs
- AuthorizationRule.cs
- ProcessModule.cs
- CustomAttributeBuilder.cs
- PrintControllerWithStatusDialog.cs
- Char.cs
- MetadataPropertyCollection.cs
- Rotation3DKeyFrameCollection.cs
- CodeArgumentReferenceExpression.cs
- KeySpline.cs
- BitmapEncoder.cs
- BidPrivateBase.cs
- ApplicationManager.cs
- itemelement.cs
- EdmComplexTypeAttribute.cs
- IncrementalHitTester.cs
- AsymmetricKeyExchangeFormatter.cs
- PageRequestManager.cs
- RangeContentEnumerator.cs
- XmlText.cs
- CacheMemory.cs
- PropertyValue.cs
- DbSourceParameterCollection.cs
- PathGeometry.cs
- InternalDispatchObject.cs
- MdiWindowListStrip.cs
- MessageAction.cs
- CalendarDesigner.cs
- SelectedDatesCollection.cs
- ClonableStack.cs
- SkewTransform.cs
- Span.cs
- LogicalExpressionEditor.cs
- MetafileHeaderWmf.cs
- InteropAutomationProvider.cs
- parserscommon.cs
- EntityViewGenerationAttribute.cs
- RenderContext.cs
- ExtensibleSyndicationObject.cs
- DataControlFieldHeaderCell.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlSerializerOperationGenerator.cs
- RegisteredHiddenField.cs
- ProfileGroupSettingsCollection.cs
- _PooledStream.cs
- Helper.cs