Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / TraceSection.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventMetadata.cs
- DependencyPropertyKey.cs
- ObjectStateEntry.cs
- ToolBarButtonClickEvent.cs
- DecimalStorage.cs
- AttachedProperty.cs
- ImageMapEventArgs.cs
- SqlFunctions.cs
- StylusShape.cs
- SimpleBitVector32.cs
- AssemblyInfo.cs
- SharedPerformanceCounter.cs
- DataKey.cs
- LocationReference.cs
- DataContractSerializerSection.cs
- DocumentViewerAutomationPeer.cs
- ObjectDataSource.cs
- RelationshipSet.cs
- HwndSourceKeyboardInputSite.cs
- XmlLinkedNode.cs
- AddInPipelineAttributes.cs
- EnglishPluralizationService.cs
- SafeHandles.cs
- SqlBooleanizer.cs
- XmlAttributeAttribute.cs
- HttpRequestTraceRecord.cs
- AnnotationObservableCollection.cs
- XPathChildIterator.cs
- ObjectDataSourceSelectingEventArgs.cs
- Tile.cs
- EncodingDataItem.cs
- GridViewColumnCollection.cs
- SmtpMail.cs
- InvalidFilterCriteriaException.cs
- CheckBoxStandardAdapter.cs
- SqlDataSourceDesigner.cs
- AppModelKnownContentFactory.cs
- WindowInteractionStateTracker.cs
- CopyNamespacesAction.cs
- Baml2006KnownTypes.cs
- DrawingAttributeSerializer.cs
- TaskCanceledException.cs
- BuildProvidersCompiler.cs
- DesignerForm.cs
- ChannelTerminatedException.cs
- ArrayConverter.cs
- ServiceErrorHandler.cs
- TreeBuilder.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Animatable.cs
- CodeTypeMemberCollection.cs
- ExpressionPrefixAttribute.cs
- SystemPens.cs
- BuildResult.cs
- WebPartAddingEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- FontFamilyConverter.cs
- ExportOptions.cs
- ComboBoxItem.cs
- XNameTypeConverter.cs
- ComNativeDescriptor.cs
- QilInvokeLateBound.cs
- WebPartMovingEventArgs.cs
- DataRow.cs
- StrokeNodeData.cs
- OptimalBreakSession.cs
- OrderedHashRepartitionStream.cs
- DesigntimeLicenseContextSerializer.cs
- OutputCacheProfileCollection.cs
- Regex.cs
- TreeViewItem.cs
- Odbc32.cs
- OutputScopeManager.cs
- ProviderCommandInfoUtils.cs
- InputBinder.cs
- Privilege.cs
- PtsCache.cs
- HtmlContainerControl.cs
- SqlCharStream.cs
- CheckBoxList.cs
- WebPartZoneBase.cs
- _AuthenticationState.cs
- SafeCryptContextHandle.cs
- PhysicalFontFamily.cs
- OverflowException.cs
- CodeDirectiveCollection.cs
- CriticalHandle.cs
- ContentValidator.cs
- ToolStripDropDown.cs
- InstanceNameConverter.cs
- NominalTypeEliminator.cs
- DbConnectionFactory.cs
- Delegate.cs
- FrameworkElementAutomationPeer.cs
- DecimalConverter.cs
- FtpWebResponse.cs
- XmlQueryRuntime.cs
- DependencyPropertyKey.cs
- WorkflowApplicationCompletedEventArgs.cs
- Span.cs