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
- QilIterator.cs
- TraceProvider.cs
- nulltextcontainer.cs
- CompiledQueryCacheKey.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- TaskForm.cs
- Single.cs
- sqlmetadatafactory.cs
- WorkflowQueue.cs
- VirtualDirectoryMappingCollection.cs
- Monitor.cs
- TableRow.cs
- StringKeyFrameCollection.cs
- RemotingConfiguration.cs
- SymbolTable.cs
- XmlSchemaSimpleType.cs
- FileUtil.cs
- XmlDataSourceNodeDescriptor.cs
- Expressions.cs
- Pts.cs
- ManagementInstaller.cs
- Triplet.cs
- Cell.cs
- login.cs
- ImageClickEventArgs.cs
- ErrorFormatterPage.cs
- HtmlTableCellCollection.cs
- DetailsViewUpdatedEventArgs.cs
- OdbcEnvironment.cs
- DispatcherProcessingDisabled.cs
- LocalValueEnumerator.cs
- StrokeNodeOperations2.cs
- DataGridViewRowsRemovedEventArgs.cs
- SchemaNamespaceManager.cs
- ProfileBuildProvider.cs
- FastPropertyAccessor.cs
- WorkflowLayouts.cs
- DragEventArgs.cs
- PolicyReader.cs
- DrawingCollection.cs
- ZipFileInfo.cs
- AudioBase.cs
- ByteAnimationUsingKeyFrames.cs
- MimeXmlReflector.cs
- DataGridViewToolTip.cs
- AuthenticatedStream.cs
- SvcFileManager.cs
- QilInvokeEarlyBound.cs
- SubordinateTransaction.cs
- webeventbuffer.cs
- ViewCellSlot.cs
- Stacktrace.cs
- XmlTypeMapping.cs
- StoreAnnotationsMap.cs
- UpdateRecord.cs
- AdapterUtil.cs
- GridViewRowCollection.cs
- DiscoveryProxy.cs
- FileDialogPermission.cs
- BigInt.cs
- ContentDisposition.cs
- CharacterBufferReference.cs
- BamlTreeMap.cs
- SqlDataSourceSelectingEventArgs.cs
- AutomationPropertyInfo.cs
- ComplusTypeValidator.cs
- TerminatorSinks.cs
- XmlAttributeProperties.cs
- ByteStream.cs
- SerialErrors.cs
- SHA256CryptoServiceProvider.cs
- ToolStripItemImageRenderEventArgs.cs
- OpacityConverter.cs
- HttpModulesSection.cs
- DelegateCompletionCallbackWrapper.cs
- UiaCoreTypesApi.cs
- HelpInfo.cs
- RemotingServices.cs
- BitmapEffectState.cs
- BackStopAuthenticationModule.cs
- ProgressChangedEventArgs.cs
- XmlBufferReader.cs
- DiagnosticTraceSchemas.cs
- ApplicationId.cs
- ImageMapEventArgs.cs
- ContentOperations.cs
- ZoneIdentityPermission.cs
- WebServiceData.cs
- GridLength.cs
- PropertyToken.cs
- GeometryModel3D.cs
- MexNamedPipeBindingElement.cs
- SqlUdtInfo.cs
- ColumnWidthChangingEvent.cs
- CreateUserWizard.cs
- WebConvert.cs
- Normalization.cs
- MarkupExtensionParser.cs
- DrawingState.cs
- ListViewInsertedEventArgs.cs