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
- DiagnosticsConfigurationHandler.cs
- DataGridViewImageColumn.cs
- RichTextBox.cs
- AssemblyHash.cs
- WindowsGraphicsWrapper.cs
- CroppedBitmap.cs
- WSSecureConversationFeb2005.cs
- CollectionMarkupSerializer.cs
- PlatformCulture.cs
- EncoderReplacementFallback.cs
- LinqDataSourceValidationException.cs
- XmlNodeReader.cs
- Rotation3DKeyFrameCollection.cs
- JournalEntry.cs
- AffineTransform3D.cs
- TextServicesHost.cs
- StringResourceManager.cs
- RuntimeResourceSet.cs
- UnsafePeerToPeerMethods.cs
- RowsCopiedEventArgs.cs
- ProcessInfo.cs
- Column.cs
- DefaultValueAttribute.cs
- streamingZipPartStream.cs
- ButtonChrome.cs
- ColumnProvider.cs
- HtmlInputSubmit.cs
- TriState.cs
- StyleCollection.cs
- followingquery.cs
- InternalCache.cs
- ProfileWorkflowElement.cs
- ResourceManagerWrapper.cs
- TextUtf8RawTextWriter.cs
- ComponentChangingEvent.cs
- SystemPens.cs
- ElementHostPropertyMap.cs
- SynchronizedDispatch.cs
- Empty.cs
- SvcMapFileLoader.cs
- CurrentTimeZone.cs
- login.cs
- EventBuilder.cs
- PipelineModuleStepContainer.cs
- AddIn.cs
- RolePrincipal.cs
- WSHttpTransportSecurityElement.cs
- XmlReflectionMember.cs
- TimerElapsedEvenArgs.cs
- SchemaLookupTable.cs
- CookieParameter.cs
- TagPrefixCollection.cs
- SerializationAttributes.cs
- ReferenceEqualityComparer.cs
- DrawingState.cs
- PreviewKeyDownEventArgs.cs
- ImagingCache.cs
- TypeExtensions.cs
- Canvas.cs
- ClientSideQueueItem.cs
- VSWCFServiceContractGenerator.cs
- AggregationMinMaxHelpers.cs
- Privilege.cs
- Constraint.cs
- Decorator.cs
- MDIClient.cs
- Point4D.cs
- XMLUtil.cs
- RtfControlWordInfo.cs
- TriggerAction.cs
- MetadataArtifactLoaderCompositeResource.cs
- StatusBarDrawItemEvent.cs
- NGCPageContentCollectionSerializerAsync.cs
- GridLength.cs
- ByteAnimation.cs
- URLAttribute.cs
- BindingExpressionUncommonField.cs
- AdapterUtil.cs
- AliasGenerator.cs
- OleDbEnumerator.cs
- WebServicesDescriptionAttribute.cs
- StateDesigner.Helpers.cs
- Cloud.cs
- HtmlInputPassword.cs
- OutputCacheProfile.cs
- CursorConverter.cs
- ControlAdapter.cs
- Pointer.cs
- DrawingContextDrawingContextWalker.cs
- DocumentXPathNavigator.cs
- TrackingMemoryStream.cs
- baseaxisquery.cs
- VideoDrawing.cs
- EntityDataSourceReferenceGroup.cs
- TemplateBamlRecordReader.cs
- _TransmitFileOverlappedAsyncResult.cs
- Vector3DAnimationUsingKeyFrames.cs
- OleDragDropHandler.cs
- WriteableOnDemandPackagePart.cs
- PermissionSetTriple.cs