Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / TraceSection.cs / 1305376 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompensatableTransactionScopeActivity.cs
- FixedSOMSemanticBox.cs
- NamespaceCollection.cs
- IdentityHolder.cs
- BindingCollection.cs
- Point3DCollectionValueSerializer.cs
- FunctionDefinition.cs
- ExpressionBuilderContext.cs
- ReflectTypeDescriptionProvider.cs
- EmptyQuery.cs
- SimplePropertyEntry.cs
- GeneratedContractType.cs
- ListBoxAutomationPeer.cs
- TraceContextEventArgs.cs
- InheritanceContextHelper.cs
- ContentPosition.cs
- IntPtr.cs
- RegexFCD.cs
- CodeGeneratorOptions.cs
- StatusBarPanel.cs
- InstanceDataCollection.cs
- CustomActivityDesigner.cs
- SqlSelectStatement.cs
- ResXResourceWriter.cs
- UnsafeNativeMethods.cs
- XmlSchemaObjectTable.cs
- ByteConverter.cs
- SyndicationFeed.cs
- TextCompositionManager.cs
- AccessDataSourceView.cs
- HttpsHostedTransportConfiguration.cs
- UpdateEventArgs.cs
- DataGridViewSelectedCellCollection.cs
- XmlILOptimizerVisitor.cs
- PeerEndPoint.cs
- ConnectionPoolManager.cs
- XPathParser.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- RepeatBehavior.cs
- NegatedConstant.cs
- Rectangle.cs
- GenericAuthenticationEventArgs.cs
- AssociatedControlConverter.cs
- StrokeFIndices.cs
- FixedSOMSemanticBox.cs
- IntSecurity.cs
- ClientConfigurationSystem.cs
- RealizationDrawingContextWalker.cs
- PrintDialog.cs
- LinkArea.cs
- NumberSubstitution.cs
- DictionaryEditChange.cs
- PropertyValueChangedEvent.cs
- MetadataException.cs
- ToolStripContentPanel.cs
- WebPartVerbCollection.cs
- XmlSubtreeReader.cs
- MSAAEventDispatcher.cs
- ValidatedControlConverter.cs
- GradientBrush.cs
- SiteMapHierarchicalDataSourceView.cs
- TdsRecordBufferSetter.cs
- RuntimeHandles.cs
- Sql8ExpressionRewriter.cs
- SynchronizingStream.cs
- TeredoHelper.cs
- MenuBase.cs
- StateDesigner.TransitionInfo.cs
- BufferedWebEventProvider.cs
- MouseButton.cs
- DSACryptoServiceProvider.cs
- DataGridViewCellStyleConverter.cs
- CodeCastExpression.cs
- AlphaSortedEnumConverter.cs
- panel.cs
- Span.cs
- Helper.cs
- Attachment.cs
- KeyConstraint.cs
- BrowserDefinition.cs
- LocalBuilder.cs
- WebBrowserPermission.cs
- PerfService.cs
- oledbconnectionstring.cs
- JavaScriptObjectDeserializer.cs
- GenericParameterDataContract.cs
- DataBoundControlParameterTarget.cs
- VirtualDirectoryMapping.cs
- TransportContext.cs
- AmbientProperties.cs
- ZoneMembershipCondition.cs
- ConfigXmlAttribute.cs
- AdornerLayer.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- UserControl.cs
- CatalogZone.cs
- MultiAsyncResult.cs
- EnumerableCollectionView.cs
- BufferModeSettings.cs
- SecureStringHasher.cs