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
- StylusButtonEventArgs.cs
- HWStack.cs
- DBPropSet.cs
- FormViewInsertEventArgs.cs
- ScheduleChanges.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- WebPartEditVerb.cs
- ImageDrawing.cs
- TrustLevel.cs
- FileChangesMonitor.cs
- KeyPullup.cs
- AnonymousIdentificationSection.cs
- _ConnectionGroup.cs
- Parser.cs
- AutoResizedEvent.cs
- NavigationPropertyEmitter.cs
- NamedPipeTransportElement.cs
- UrlMappingsModule.cs
- SynchronizedInputPattern.cs
- ResXBuildProvider.cs
- ToolStripDropDownClosingEventArgs.cs
- X509CertificateInitiatorClientCredential.cs
- StateWorkerRequest.cs
- IndexerHelper.cs
- StrokeNodeEnumerator.cs
- XmlComment.cs
- SchemaNotation.cs
- Vector3DCollectionValueSerializer.cs
- RangeValidator.cs
- TriState.cs
- SelectionList.cs
- TypeReference.cs
- SqlCacheDependencyDatabase.cs
- EpmTargetPathSegment.cs
- XPathNodeList.cs
- ReflectPropertyDescriptor.cs
- PolyBezierSegmentFigureLogic.cs
- IssuedTokenClientElement.cs
- PartialArray.cs
- TextMetrics.cs
- XPathDocument.cs
- LinkLabel.cs
- XmlDocumentSerializer.cs
- MatrixCamera.cs
- LocalValueEnumerator.cs
- HttpDebugHandler.cs
- SamlConstants.cs
- Dictionary.cs
- MDIClient.cs
- SQLUtility.cs
- MdImport.cs
- NamespaceList.cs
- LateBoundBitmapDecoder.cs
- MenuCommand.cs
- ObjectStorage.cs
- TitleStyle.cs
- OutputCacheSettingsSection.cs
- BamlLocalizableResourceKey.cs
- ClientUtils.cs
- LinkDescriptor.cs
- COMException.cs
- ImageCodecInfoPrivate.cs
- RtfNavigator.cs
- DocumentViewerHelper.cs
- MetadataHelper.cs
- WebPartManagerInternals.cs
- Int32AnimationBase.cs
- VirtualPathProvider.cs
- HttpHandlerAction.cs
- SerializationStore.cs
- SQLDecimalStorage.cs
- HttpStreamXmlDictionaryWriter.cs
- ControlCollection.cs
- UnsafeMethods.cs
- DbReferenceCollection.cs
- HelpFileFileNameEditor.cs
- LinearKeyFrames.cs
- AdapterDictionary.cs
- RemoteWebConfigurationHostServer.cs
- CertificateElement.cs
- StreamGeometry.cs
- NewArrayExpression.cs
- XamlPathDataSerializer.cs
- SiteMapDataSource.cs
- PrintDialog.cs
- StandardToolWindows.cs
- XmlValidatingReaderImpl.cs
- HeaderCollection.cs
- TreeSet.cs
- XmlSchemaObjectCollection.cs
- _AcceptOverlappedAsyncResult.cs
- DataGridViewCellCancelEventArgs.cs
- XmlAttributeAttribute.cs
- ChunkedMemoryStream.cs
- CompensationParticipant.cs
- DeviceContext.cs
- PrintPageEvent.cs
- DataGridPreparingCellForEditEventArgs.cs
- ArglessEventHandlerProxy.cs
- InternalResources.cs