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
- XmlDsigSep2000.cs
- XsltFunctions.cs
- FrameworkTemplate.cs
- _NtlmClient.cs
- Mapping.cs
- Int64AnimationBase.cs
- PeerName.cs
- UnmanagedMemoryStreamWrapper.cs
- DataGridViewImageColumn.cs
- VirtualizingPanel.cs
- RoutedCommand.cs
- TextAnchor.cs
- VisualTarget.cs
- NodeCounter.cs
- CompositeFontInfo.cs
- ImageIndexConverter.cs
- EntitySqlQueryCacheEntry.cs
- ImageIndexConverter.cs
- ReachVisualSerializer.cs
- PieceDirectory.cs
- RightsManagementErrorHandler.cs
- PartitionedStreamMerger.cs
- WebPartConnectionCollection.cs
- ChangesetResponse.cs
- ExpressionReplacer.cs
- SmtpNetworkElement.cs
- DeferredTextReference.cs
- StoreContentChangedEventArgs.cs
- CircleHotSpot.cs
- XPathParser.cs
- IndicCharClassifier.cs
- MultiPropertyDescriptorGridEntry.cs
- Input.cs
- DataGridParentRows.cs
- SmtpCommands.cs
- HyperlinkAutomationPeer.cs
- TypeBuilderInstantiation.cs
- NavigationEventArgs.cs
- RsaKeyGen.cs
- ImageDrawing.cs
- RemoteDebugger.cs
- ImplicitInputBrush.cs
- ResourceDescriptionAttribute.cs
- Int32EqualityComparer.cs
- ToolStripManager.cs
- MultiSelectRootGridEntry.cs
- SqlRecordBuffer.cs
- ApplicationProxyInternal.cs
- WsatTransactionHeader.cs
- XmlSchemaDatatype.cs
- ComponentEvent.cs
- HttpListenerTimeoutManager.cs
- HttpListenerRequest.cs
- _NTAuthentication.cs
- ConfigXmlComment.cs
- BitVector32.cs
- WebAdminConfigurationHelper.cs
- WindowsPen.cs
- Aggregates.cs
- MulticastOption.cs
- IdentifierCreationService.cs
- ViewgenGatekeeper.cs
- RbTree.cs
- AuthorizationSection.cs
- ActionMessageFilterTable.cs
- baseshape.cs
- ZipIOExtraFieldZip64Element.cs
- OdbcConnectionPoolProviderInfo.cs
- DockPattern.cs
- SymbolEqualComparer.cs
- PipelineDeploymentState.cs
- RowBinding.cs
- _BufferOffsetSize.cs
- SmtpCommands.cs
- AudienceUriMode.cs
- DataGridViewComboBoxEditingControl.cs
- SerializationException.cs
- Base64Stream.cs
- WebMessageEncoderFactory.cs
- DynamicResourceExtensionConverter.cs
- GridView.cs
- MethodToken.cs
- loginstatus.cs
- AttachmentCollection.cs
- RadioButton.cs
- DescendantOverDescendantQuery.cs
- ScriptDescriptor.cs
- ReaderOutput.cs
- JavaScriptObjectDeserializer.cs
- ImageAnimator.cs
- HttpStreamXmlDictionaryReader.cs
- StandardCommands.cs
- ObjectStorage.cs
- ObjectListField.cs
- ConvertEvent.cs
- FaultContractAttribute.cs
- PrtTicket_Public.cs
- RefreshEventArgs.cs
- EventLogHandle.cs
- DataGrid.cs