Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MetadataItem_Static.cs
- FilterQuery.cs
- HttpFileCollection.cs
- InstanceValue.cs
- SqlStream.cs
- WebAdminConfigurationHelper.cs
- GlyphCollection.cs
- ModelEditingScope.cs
- HandledMouseEvent.cs
- XXXOnTypeBuilderInstantiation.cs
- Viewport2DVisual3D.cs
- TypefaceMetricsCache.cs
- ArraySet.cs
- ScrollChangedEventArgs.cs
- RoleBoolean.cs
- DiscoveryOperationContext.cs
- PaperSource.cs
- ButtonBase.cs
- BuildProviderAppliesToAttribute.cs
- MatrixValueSerializer.cs
- Table.cs
- ClickablePoint.cs
- ColorAnimation.cs
- CompilerParameters.cs
- WebPartHeaderCloseVerb.cs
- BindingContext.cs
- Decorator.cs
- XmlNamedNodeMap.cs
- Pen.cs
- FileUpload.cs
- HandlerBase.cs
- SafeRightsManagementHandle.cs
- DebugView.cs
- XmlHierarchicalEnumerable.cs
- XslAst.cs
- PrivilegedConfigurationManager.cs
- FormsAuthenticationCredentials.cs
- SmtpReplyReaderFactory.cs
- FormsAuthenticationTicket.cs
- WebMessageEncoderFactory.cs
- ResourceAttributes.cs
- XmlMtomWriter.cs
- HeaderUtility.cs
- AnnotationService.cs
- PreservationFileWriter.cs
- Content.cs
- DispatcherTimer.cs
- AccessDataSource.cs
- InvalidateEvent.cs
- ping.cs
- XmlSchemaExternal.cs
- IndicShape.cs
- InputLanguageProfileNotifySink.cs
- DependencyObjectType.cs
- TypeListConverter.cs
- CodeArrayCreateExpression.cs
- Int32Collection.cs
- DataSourceSelectArguments.cs
- SerializationException.cs
- SharedPerformanceCounter.cs
- DataControlImageButton.cs
- FormsAuthenticationCredentials.cs
- NavigationWindow.cs
- DataGridViewButtonColumn.cs
- CategoryAttribute.cs
- XmlQueryContext.cs
- XamlGridLengthSerializer.cs
- LinkGrep.cs
- FormatException.cs
- AssemblyHash.cs
- ToolStripPanelRow.cs
- CompoundFileDeflateTransform.cs
- XmlSchemaRedefine.cs
- TemplateBaseAction.cs
- GroupBox.cs
- ConfigurationManager.cs
- BuildProvidersCompiler.cs
- Tablet.cs
- SqlDataSourceCache.cs
- DataSource.cs
- QuaternionIndependentAnimationStorage.cs
- FragmentNavigationEventArgs.cs
- Util.cs
- SystemUdpStatistics.cs
- FieldNameLookup.cs
- ToggleButtonAutomationPeer.cs
- HttpAsyncResult.cs
- Registry.cs
- RemotingConfiguration.cs
- SoapSchemaExporter.cs
- TriggerActionCollection.cs
- DetailsViewRow.cs
- SimpleTypesSurrogate.cs
- PeerValidationBehavior.cs
- ReflectionTypeLoadException.cs
- DataStorage.cs
- DocumentsTrace.cs
- CodePageUtils.cs
- ContentDesigner.cs
- ToolStripComboBox.cs