Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // 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
- TreeNodeEventArgs.cs
- SqlCachedBuffer.cs
- DragEvent.cs
- CustomAssemblyResolver.cs
- TemplateDefinition.cs
- MultiAsyncResult.cs
- RecordBuilder.cs
- TextDecorations.cs
- RemotingConfiguration.cs
- BindingOperations.cs
- Reference.cs
- cookiecollection.cs
- ItemList.cs
- DataListItem.cs
- RepeaterCommandEventArgs.cs
- BooleanFunctions.cs
- WorkflowMarkupSerializerMapping.cs
- ByteKeyFrameCollection.cs
- CollectionEditVerbManager.cs
- DecoderFallback.cs
- InteropBitmapSource.cs
- UserControlParser.cs
- KeyEvent.cs
- PlacementWorkspace.cs
- DesignerActionUIStateChangeEventArgs.cs
- PasswordDeriveBytes.cs
- OdbcConnectionOpen.cs
- SocketAddress.cs
- RelationshipEnd.cs
- NotificationContext.cs
- HitTestParameters.cs
- ExtendedPropertyDescriptor.cs
- CustomMenuItemCollection.cs
- NotifyIcon.cs
- DivideByZeroException.cs
- nulltextnavigator.cs
- BackStopAuthenticationModule.cs
- TraceHandlerErrorFormatter.cs
- WebPartDeleteVerb.cs
- UIElementPropertyUndoUnit.cs
- IgnoreDeviceFilterElementCollection.cs
- LinearGradientBrush.cs
- IndexedString.cs
- CodeAccessSecurityEngine.cs
- DataList.cs
- NameValueConfigurationCollection.cs
- DbProviderServices.cs
- TiffBitmapDecoder.cs
- PeerNameRecord.cs
- AdornerDecorator.cs
- OleDbSchemaGuid.cs
- LoginUtil.cs
- WindowsIPAddress.cs
- DataBoundControlDesigner.cs
- WebPartConnectionsEventArgs.cs
- UserControlFileEditor.cs
- ApplicationId.cs
- _NetRes.cs
- SoapAttributeOverrides.cs
- COMException.cs
- WebBrowserPermission.cs
- WindowsFormsHostPropertyMap.cs
- DbProviderManifest.cs
- NullableBoolConverter.cs
- DbConvert.cs
- ToolTipAutomationPeer.cs
- SecurityKeyIdentifierClause.cs
- UInt32.cs
- WorkflowShape.cs
- SerializerDescriptor.cs
- InputLanguageManager.cs
- X509SecurityTokenAuthenticator.cs
- ListItemConverter.cs
- JsonFormatGeneratorStatics.cs
- BufferedGraphicsManager.cs
- HandleCollector.cs
- TextFragmentEngine.cs
- ResourcePart.cs
- AssociationSetMetadata.cs
- InstanceCreationEditor.cs
- ResourceAttributes.cs
- XmlDesignerDataSourceView.cs
- ImagingCache.cs
- UIElement.cs
- WasAdminWrapper.cs
- CodeComment.cs
- IssuedTokenClientElement.cs
- SamlAssertion.cs
- TypeConstant.cs
- listitem.cs
- SimpleColumnProvider.cs
- TemplateBuilder.cs
- SortableBindingList.cs
- OperationFormatStyle.cs
- Image.cs
- CodeArrayCreateExpression.cs
- OleDbConnectionFactory.cs
- Sql8ConformanceChecker.cs
- BufferBuilder.cs
- MarkupCompilePass1.cs