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
- PackagingUtilities.cs
- WorkflowPageSetupDialog.cs
- TextDecorationUnitValidation.cs
- TypeUsage.cs
- RequestNavigateEventArgs.cs
- MenuAdapter.cs
- EqualityArray.cs
- SweepDirectionValidation.cs
- TextServicesLoader.cs
- BitmapEffectvisualstate.cs
- SystemWebCachingSectionGroup.cs
- SelectedDatesCollection.cs
- FontSourceCollection.cs
- XPathItem.cs
- UserControl.cs
- VisualCollection.cs
- WebPartCollection.cs
- DecimalAverageAggregationOperator.cs
- ResourceContainer.cs
- EmptyEnumerator.cs
- ListItemParagraph.cs
- CompatibleComparer.cs
- ConfigXmlSignificantWhitespace.cs
- TypeExtension.cs
- CallContext.cs
- EntityDataSourceReferenceGroup.cs
- ServiceOperation.cs
- ListenerConfig.cs
- FastPropertyAccessor.cs
- Label.cs
- ScrollItemPattern.cs
- CodeDirectiveCollection.cs
- ProxyRpc.cs
- SliderAutomationPeer.cs
- SerialPort.cs
- StrokeSerializer.cs
- ScaleTransform.cs
- DataGridViewButtonCell.cs
- PageParserFilter.cs
- DataGridTable.cs
- UICuesEvent.cs
- ExceptQueryOperator.cs
- TableColumnCollectionInternal.cs
- OleDbParameterCollection.cs
- DiagnosticSection.cs
- TypeValidationEventArgs.cs
- ExceptionUtil.cs
- RtfNavigator.cs
- GACMembershipCondition.cs
- _AutoWebProxyScriptEngine.cs
- XmlSchemaElement.cs
- DoubleIndependentAnimationStorage.cs
- PtsPage.cs
- HttpListenerTimeoutManager.cs
- AuthorizationPolicyTypeElementCollection.cs
- ImageMapEventArgs.cs
- AutomationEventArgs.cs
- Calendar.cs
- EventEntry.cs
- InvariantComparer.cs
- ThousandthOfEmRealDoubles.cs
- InlineObject.cs
- Figure.cs
- PassportAuthenticationModule.cs
- CodeBlockBuilder.cs
- PerspectiveCamera.cs
- MapPathBasedVirtualPathProvider.cs
- RelationshipEntry.cs
- SimpleFieldTemplateUserControl.cs
- CanExecuteRoutedEventArgs.cs
- TemplateBuilder.cs
- ObjectStateFormatter.cs
- FunctionImportElement.cs
- QilXmlWriter.cs
- PopupEventArgs.cs
- SqlNodeTypeOperators.cs
- ErrorWebPart.cs
- ClusterRegistryConfigurationProvider.cs
- PackageFilter.cs
- Guid.cs
- RequestReplyCorrelator.cs
- ImageAutomationPeer.cs
- StorageRoot.cs
- NativeConfigurationLoader.cs
- LongValidator.cs
- XmlDocumentType.cs
- CanonicalXml.cs
- ImportContext.cs
- PenThread.cs
- MonthCalendar.cs
- IEnumerable.cs
- DbTypeMap.cs
- TimeManager.cs
- DependencyObjectType.cs
- _LocalDataStoreMgr.cs
- HighContrastHelper.cs
- DBCommandBuilder.cs
- TableCell.cs
- FileSystemInfo.cs
- InternalTypeHelper.cs