Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ButtonBase.cs
- SendActivityDesigner.cs
- ConstructorNeedsTagAttribute.cs
- ControlPropertyNameConverter.cs
- LoadRetryStrategyFactory.cs
- ParameterModifier.cs
- SpeechSeg.cs
- IdnMapping.cs
- SectionRecord.cs
- DesignTimeValidationFeature.cs
- Converter.cs
- util.cs
- DoWhileDesigner.xaml.cs
- RtType.cs
- MaskedTextBox.cs
- XNodeValidator.cs
- XPathAncestorQuery.cs
- DataGridState.cs
- TdsParser.cs
- updatecommandorderer.cs
- TimeSpanStorage.cs
- Knowncolors.cs
- ProcessInfo.cs
- AnnotationResourceChangedEventArgs.cs
- HighlightVisual.cs
- ResourceDescriptionAttribute.cs
- EnumValAlphaComparer.cs
- SerializationFieldInfo.cs
- AutoCompleteStringCollection.cs
- LowerCaseStringConverter.cs
- TypeElement.cs
- MenuCommand.cs
- SrgsNameValueTag.cs
- FileChangesMonitor.cs
- FileDataSource.cs
- Util.cs
- ToolboxItemCollection.cs
- TextViewBase.cs
- RegionData.cs
- SiteMembershipCondition.cs
- FixedSOMLineRanges.cs
- FunctionImportElement.cs
- RegexWriter.cs
- PenContexts.cs
- RegexParser.cs
- WebUtil.cs
- XPathSelfQuery.cs
- TempFiles.cs
- TreeViewItem.cs
- DescendantQuery.cs
- ComponentRenameEvent.cs
- GacUtil.cs
- ContextMenuStrip.cs
- ScrollItemPattern.cs
- HandleTable.cs
- SoapConverter.cs
- FileStream.cs
- IndexedWhereQueryOperator.cs
- XmlAnyAttributeAttribute.cs
- XhtmlBasicLabelAdapter.cs
- XmlSchemaSequence.cs
- Itemizer.cs
- EditingCoordinator.cs
- TableChangeProcessor.cs
- CodeDOMUtility.cs
- DatatypeImplementation.cs
- ToolStripArrowRenderEventArgs.cs
- ServiceOperationParameter.cs
- WindowsSlider.cs
- CompositeDataBoundControl.cs
- Aes.cs
- StringValidatorAttribute.cs
- MatrixKeyFrameCollection.cs
- MSAANativeProvider.cs
- InputLanguageCollection.cs
- RequestTimeoutManager.cs
- SqlBulkCopyColumnMappingCollection.cs
- SystemIPInterfaceProperties.cs
- ScriptModule.cs
- mediapermission.cs
- OleStrCAMarshaler.cs
- BitmapPalette.cs
- Composition.cs
- MatrixCamera.cs
- CodeSnippetStatement.cs
- WinFormsComponentEditor.cs
- QilInvoke.cs
- ConfigXmlAttribute.cs
- RequestSecurityToken.cs
- CommonObjectSecurity.cs
- RecordConverter.cs
- XmlNode.cs
- DesignerView.cs
- WebResourceUtil.cs
- OdbcConnectionPoolProviderInfo.cs
- ISFTagAndGuidCache.cs
- DoWhile.cs
- WebRequestModulesSection.cs
- GroupBoxAutomationPeer.cs
- XmlSortKey.cs