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
- NamespaceList.cs
- VisualTransition.cs
- ToolStripLabel.cs
- Point4D.cs
- TextEditorContextMenu.cs
- SoapRpcServiceAttribute.cs
- ElementUtil.cs
- ObjectAnimationBase.cs
- AuthorizationPolicyTypeElementCollection.cs
- WindowsStatusBar.cs
- HtmlTable.cs
- ProfessionalColorTable.cs
- SurrogateChar.cs
- BindableTemplateBuilder.cs
- MenuCommandService.cs
- DoubleCollectionValueSerializer.cs
- Tracking.cs
- MenuItemStyleCollectionEditor.cs
- CodeDOMUtility.cs
- RowParagraph.cs
- RewritingProcessor.cs
- DataGridTablesFactory.cs
- MailMessage.cs
- RequestResponse.cs
- SafeRegistryHandle.cs
- IntegrationExceptionEventArgs.cs
- FragmentQueryProcessor.cs
- EnvelopedSignatureTransform.cs
- Page.cs
- AnonymousIdentificationSection.cs
- PageCodeDomTreeGenerator.cs
- XmlSchemaComplexContentRestriction.cs
- LabelAutomationPeer.cs
- IconConverter.cs
- PatternMatcher.cs
- ConfigXmlElement.cs
- XmlUrlResolver.cs
- ElementHost.cs
- CreateUserWizardDesigner.cs
- QilVisitor.cs
- QilLiteral.cs
- SocketPermission.cs
- DataServiceKeyAttribute.cs
- BulletChrome.cs
- RangeValidator.cs
- LinqDataSource.cs
- BoolExpression.cs
- Helper.cs
- ResXBuildProvider.cs
- SerializerProvider.cs
- ListenerHandler.cs
- NativeCompoundFileAPIs.cs
- UnsafeNativeMethods.cs
- UserControl.cs
- TaskDesigner.cs
- HttpGetClientProtocol.cs
- CompilerScopeManager.cs
- SoapIgnoreAttribute.cs
- TextEditorTyping.cs
- DesignTimeTemplateParser.cs
- BamlTreeUpdater.cs
- ImageListStreamer.cs
- Visual3DCollection.cs
- PersonalizationAdministration.cs
- AspCompat.cs
- InternalBufferOverflowException.cs
- AssemblyNameProxy.cs
- ManagementDateTime.cs
- HtmlTableRow.cs
- StringAttributeCollection.cs
- PropertyChange.cs
- AdornerLayer.cs
- CellRelation.cs
- EntityAdapter.cs
- CompositeActivityCodeGenerator.cs
- NameNode.cs
- MimeMultiPart.cs
- PointCollection.cs
- CodeGenHelper.cs
- TrackingStringDictionary.cs
- X509ChainPolicy.cs
- ThrowHelper.cs
- IEnumerable.cs
- TextSelectionHighlightLayer.cs
- CheckBox.cs
- ResolveResponse.cs
- FileIOPermission.cs
- UshortList2.cs
- Itemizer.cs
- SafeNativeMethods.cs
- RelationshipManager.cs
- DbConnectionPool.cs
- LogStore.cs
- StatusBarItemAutomationPeer.cs
- PortCache.cs
- ServiceHostFactory.cs
- EdmSchemaError.cs
- EntityDesignerDataSourceView.cs
- XmlMemberMapping.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs