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
- GridViewSortEventArgs.cs
- TextSegment.cs
- NumberFormatter.cs
- CharacterMetrics.cs
- ServiceNameCollection.cs
- DataViewListener.cs
- GlobalizationAssembly.cs
- BaseResourcesBuildProvider.cs
- SqlParameterCollection.cs
- GeneralTransformGroup.cs
- AppDomainAttributes.cs
- WorkBatch.cs
- StoreUtilities.cs
- HttpAsyncResult.cs
- BinaryNode.cs
- ProviderSettingsCollection.cs
- XmlAttributeHolder.cs
- MultiByteCodec.cs
- XmlElementAttribute.cs
- CategoriesDocumentFormatter.cs
- Matrix.cs
- GenericWebPart.cs
- ValidationEventArgs.cs
- CacheMode.cs
- SrgsGrammarCompiler.cs
- GPRECTF.cs
- RelationshipEntry.cs
- FontFamilyIdentifier.cs
- CustomCategoryAttribute.cs
- MemberAssignment.cs
- ResXFileRef.cs
- Win32.cs
- RepeaterItemCollection.cs
- ValidationPropertyAttribute.cs
- WindowsAuthenticationModule.cs
- SourceFileBuildProvider.cs
- CommunicationException.cs
- LockRecursionException.cs
- RowCache.cs
- PageRanges.cs
- MultiView.cs
- EntityWithKeyStrategy.cs
- ApplicationFileParser.cs
- GroupItem.cs
- BitStack.cs
- GenericsInstances.cs
- PasswordTextContainer.cs
- RoutedEventArgs.cs
- IArgumentProvider.cs
- ToolStripDropDownButton.cs
- SymmetricAlgorithm.cs
- Decimal.cs
- PackagePartCollection.cs
- MembershipSection.cs
- CompositionTarget.cs
- VectorAnimationUsingKeyFrames.cs
- DriveNotFoundException.cs
- SplitterPanel.cs
- MultilineStringConverter.cs
- StrokeNodeOperations2.cs
- ToolStripGrip.cs
- TableColumnCollection.cs
- AttachedPropertyBrowsableAttribute.cs
- SiteMap.cs
- CalendarButtonAutomationPeer.cs
- ScriptControlManager.cs
- PinnedBufferMemoryStream.cs
- IUnknownConstantAttribute.cs
- objectresult_tresulttype.cs
- XmlDictionaryReaderQuotas.cs
- ClientSponsor.cs
- BinaryParser.cs
- ProcessingInstructionAction.cs
- SchemaCreator.cs
- Nullable.cs
- FtpCachePolicyElement.cs
- MetadataArtifactLoaderCompositeFile.cs
- TimeoutException.cs
- TabControlAutomationPeer.cs
- XmlSchemaCompilationSettings.cs
- SecurityHeaderElementInferenceEngine.cs
- ListParaClient.cs
- RuntimeResourceSet.cs
- PersianCalendar.cs
- Types.cs
- DiagnosticTraceRecords.cs
- XmlBindingWorker.cs
- ParagraphResult.cs
- UnsafeNetInfoNativeMethods.cs
- ListMarkerSourceInfo.cs
- RepeaterItemCollection.cs
- UInt32Storage.cs
- BitmapImage.cs
- PersistStreamTypeWrapper.cs
- StreamAsIStream.cs
- QuotedPrintableStream.cs
- HttpHeaderCollection.cs
- DesignerActionPropertyItem.cs
- XpsFilter.cs
- StickyNoteAnnotations.cs