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
- SizeAnimationBase.cs
- LiteralText.cs
- DriveInfo.cs
- Processor.cs
- TextEditorThreadLocalStore.cs
- DESCryptoServiceProvider.cs
- Choices.cs
- NativeMethods.cs
- PasswordValidationException.cs
- StrongNameUtility.cs
- StrokeNodeData.cs
- CodeActivityContext.cs
- ScrollViewerAutomationPeer.cs
- SystemKeyConverter.cs
- SafeCertificateContext.cs
- GridViewCancelEditEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MouseGestureConverter.cs
- Button.cs
- CopyOfAction.cs
- Security.cs
- PolicyManager.cs
- TextSelectionHighlightLayer.cs
- TemplateParser.cs
- CredentialManagerDialog.cs
- InProcStateClientManager.cs
- MainMenu.cs
- DataGridViewCellMouseEventArgs.cs
- ReferencedAssembly.cs
- Path.cs
- MetadataException.cs
- SourceElementsCollection.cs
- ErrorView.xaml.cs
- sqlcontext.cs
- MaskDesignerDialog.cs
- ComponentCollection.cs
- ToolStripPanelSelectionBehavior.cs
- ImageAnimator.cs
- TextEffect.cs
- XmlSchemaSimpleType.cs
- PersistNameAttribute.cs
- TypefaceMap.cs
- WorkflowView.cs
- ExtentJoinTreeNode.cs
- CompoundFileStorageReference.cs
- ContentPathSegment.cs
- UIPropertyMetadata.cs
- HtmlButton.cs
- ServiceDescription.cs
- HtmlWindow.cs
- DefaultTraceListener.cs
- ListControl.cs
- StateWorkerRequest.cs
- XmlAutoDetectWriter.cs
- RepeaterItem.cs
- XmlSchemaDatatype.cs
- HtmlLink.cs
- ToolStripScrollButton.cs
- WebPart.cs
- DoubleConverter.cs
- GridViewUpdateEventArgs.cs
- ScaleTransform.cs
- SubMenuStyleCollection.cs
- TaiwanLunisolarCalendar.cs
- ComPlusTypeValidator.cs
- DesignTimeVisibleAttribute.cs
- CodeNamespaceImport.cs
- InputScopeAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- Property.cs
- TransformConverter.cs
- EventWaitHandleSecurity.cs
- HyperLinkStyle.cs
- SecurityHeaderTokenResolver.cs
- SpAudioStreamWrapper.cs
- SerTrace.cs
- CompositeDataBoundControl.cs
- XmlDataSourceDesigner.cs
- PathTooLongException.cs
- CharKeyFrameCollection.cs
- XmlException.cs
- basevalidator.cs
- ListViewAutomationPeer.cs
- Int32Collection.cs
- WindowsGraphicsCacheManager.cs
- HandlerFactoryWrapper.cs
- XmlSecureResolver.cs
- sqlnorm.cs
- EmbeddedMailObject.cs
- Events.cs
- PassportAuthenticationEventArgs.cs
- XmlQueryCardinality.cs
- ShapeTypeface.cs
- DbBuffer.cs
- LineServicesCallbacks.cs
- SlotInfo.cs
- FileStream.cs
- DashStyle.cs
- StoryFragments.cs