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
- HttpListenerContext.cs
- ContainerFilterService.cs
- MessageBox.cs
- StickyNoteAnnotations.cs
- AuthorizationRule.cs
- IDReferencePropertyAttribute.cs
- PersonalizablePropertyEntry.cs
- DateTimePickerDesigner.cs
- AuthorizationRule.cs
- SqlXmlStorage.cs
- CreatingCookieEventArgs.cs
- TypeResolver.cs
- ButtonChrome.cs
- BindingMAnagerBase.cs
- RequestBringIntoViewEventArgs.cs
- SingleAnimationBase.cs
- VisualTreeHelper.cs
- ShaderRenderModeValidation.cs
- ToolStripSettings.cs
- SourceFileInfo.cs
- DataBinding.cs
- ViewManager.cs
- FtpRequestCacheValidator.cs
- ExceptionTranslationTable.cs
- RadioButtonPopupAdapter.cs
- EntityDataReader.cs
- PrefixQName.cs
- DocumentApplication.cs
- Parser.cs
- ParameterReplacerVisitor.cs
- CodeSubDirectoriesCollection.cs
- AutomationPatternInfo.cs
- PerformanceCounterManager.cs
- ColorTransform.cs
- LabelDesigner.cs
- SqlConnectionFactory.cs
- FamilyTypefaceCollection.cs
- DataBoundControlHelper.cs
- Effect.cs
- DBSqlParserColumnCollection.cs
- KnownTypesProvider.cs
- SettingsSavedEventArgs.cs
- RichTextBoxDesigner.cs
- StreamInfo.cs
- ByteConverter.cs
- Win32KeyboardDevice.cs
- XamlStream.cs
- WsdlBuildProvider.cs
- OutputCacheSettingsSection.cs
- Popup.cs
- EncoderParameters.cs
- Rijndael.cs
- HttpListener.cs
- StrongNameUtility.cs
- PropertyItem.cs
- FreezableOperations.cs
- MailAddressParser.cs
- DescendentsWalkerBase.cs
- VisualProxy.cs
- SynchronizationLockException.cs
- BinarySerializer.cs
- LostFocusEventManager.cs
- BitmapEffect.cs
- GeneralTransform2DTo3DTo2D.cs
- XmlNode.cs
- StoryFragments.cs
- RichTextBoxConstants.cs
- CharacterShapingProperties.cs
- HttpsChannelListener.cs
- AuthenticationManager.cs
- PersonalizationState.cs
- SurrogateChar.cs
- BitmapEffectvisualstate.cs
- SecurityCapabilities.cs
- DbSourceCommand.cs
- BinaryQueryOperator.cs
- UnauthorizedAccessException.cs
- DataGridTextBoxColumn.cs
- ControlEvent.cs
- SmiContext.cs
- CodeTypeOfExpression.cs
- EntityParameterCollection.cs
- SafeWaitHandle.cs
- SimpleRecyclingCache.cs
- UriParserTemplates.cs
- ReferenceEqualityComparer.cs
- BitmapFrame.cs
- ContextStack.cs
- OracleDataAdapter.cs
- XmlSerializerSection.cs
- BinHexEncoder.cs
- AutoResizedEvent.cs
- XmlException.cs
- VariableModifiersHelper.cs
- EdgeModeValidation.cs
- ClientSettings.cs
- ArcSegment.cs
- ComponentChangingEvent.cs
- ListViewGroupConverter.cs
- OdbcErrorCollection.cs