Code:
/ DotNET / DotNET / 8.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
- FramingChannels.cs
- LineServicesCallbacks.cs
- DefaultObjectSerializer.cs
- ViewStateModeByIdAttribute.cs
- SQLCharsStorage.cs
- DeobfuscatingStream.cs
- Directory.cs
- ClientTarget.cs
- TcpStreams.cs
- DataGridClipboardCellContent.cs
- XmlILIndex.cs
- PrePostDescendentsWalker.cs
- PropertyGridView.cs
- SubMenuStyleCollectionEditor.cs
- ClockController.cs
- HostedElements.cs
- UserThread.cs
- SymbolEqualComparer.cs
- Semaphore.cs
- Pool.cs
- BitmapPalette.cs
- MetadataCache.cs
- DPCustomTypeDescriptor.cs
- TargetControlTypeCache.cs
- TemplateControlBuildProvider.cs
- DebugView.cs
- DictionaryEntry.cs
- ImmutableCommunicationTimeouts.cs
- ScopeCollection.cs
- MissingMemberException.cs
- ToolStripPanelRenderEventArgs.cs
- ValueType.cs
- DesignerDeviceConfig.cs
- ZoneButton.cs
- ProfessionalColors.cs
- TextElementEnumerator.cs
- ContainerActivationHelper.cs
- ObjectSecurity.cs
- RemotingHelper.cs
- __TransparentProxy.cs
- ContractType.cs
- FilteredAttributeCollection.cs
- EFTableProvider.cs
- ConstraintCollection.cs
- sqlstateclientmanager.cs
- PresentationAppDomainManager.cs
- DashStyle.cs
- RightNameExpirationInfoPair.cs
- TabControl.cs
- Rect3DValueSerializer.cs
- CharStorage.cs
- BlobPersonalizationState.cs
- LocatorGroup.cs
- EnumType.cs
- TextRange.cs
- PropertyValueChangedEvent.cs
- Border.cs
- RealProxy.cs
- InheritablePropertyChangeInfo.cs
- WebControlsSection.cs
- PingOptions.cs
- Size3D.cs
- WebExceptionStatus.cs
- SspiSafeHandles.cs
- CodeAttributeArgumentCollection.cs
- MenuEventArgs.cs
- StaticResourceExtension.cs
- Translator.cs
- ExpressionBuilderCollection.cs
- altserialization.cs
- PropertyInfoSet.cs
- BitmapEffectDrawingContent.cs
- BooleanProjectedSlot.cs
- GenericTypeParameterConverter.cs
- DataGridParentRows.cs
- BuildResultCache.cs
- ChildTable.cs
- EmbeddedMailObject.cs
- TemplateBamlRecordReader.cs
- DriveNotFoundException.cs
- LabelTarget.cs
- ListViewUpdateEventArgs.cs
- Fx.cs
- CheckBoxStandardAdapter.cs
- ACL.cs
- FloatAverageAggregationOperator.cs
- ServiceModelConfigurationSection.cs
- CharKeyFrameCollection.cs
- ScrollPattern.cs
- DynamicMethod.cs
- Section.cs
- CommandBindingCollection.cs
- SecureUICommand.cs
- PopupControlService.cs
- DataServiceExpressionVisitor.cs
- HttpWebResponse.cs
- util.cs
- RangeBaseAutomationPeer.cs
- Crypto.cs
- RuntimeConfig.cs