Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AuthenticateEventArgs.cs
- infer.cs
- DataServiceQueryOfT.cs
- AuthenticationSchemesHelper.cs
- InvokeProviderWrapper.cs
- TextCompositionEventArgs.cs
- ToolBarButtonClickEvent.cs
- XsltSettings.cs
- SqlDataSourceCache.cs
- MessagePropertyFilter.cs
- WindowsScrollBar.cs
- XmlSchemaSimpleContentExtension.cs
- PropertyFilterAttribute.cs
- HandledMouseEvent.cs
- MouseEvent.cs
- SocketElement.cs
- TextRenderingModeValidation.cs
- ManagementException.cs
- Ray3DHitTestResult.cs
- UnsafeNativeMethodsTablet.cs
- GeneralTransform2DTo3D.cs
- ComplexPropertyEntry.cs
- SourceFileInfo.cs
- TextLine.cs
- ProtocolsConfiguration.cs
- XmlCodeExporter.cs
- ClientFormsAuthenticationCredentials.cs
- ResourcePermissionBase.cs
- CLSCompliantAttribute.cs
- SortAction.cs
- XMLDiffLoader.cs
- ObjectSecurity.cs
- ToolStripSeparator.cs
- ToolZone.cs
- EdmPropertyAttribute.cs
- ClientTargetCollection.cs
- FacetValueContainer.cs
- TextViewDesigner.cs
- DeferredSelectedIndexReference.cs
- ToolStripRendererSwitcher.cs
- RegistrationServices.cs
- MemberPath.cs
- Logging.cs
- RootProjectionNode.cs
- CommonDialog.cs
- HtmlInputSubmit.cs
- Expander.cs
- SiteMapHierarchicalDataSourceView.cs
- CopyAction.cs
- BitmapEffectGroup.cs
- BrushValueSerializer.cs
- SettingsBase.cs
- RootBuilder.cs
- DrawingContextWalker.cs
- Win32Exception.cs
- HashStream.cs
- HTMLTagNameToTypeMapper.cs
- TreeNode.cs
- SerializationObjectManager.cs
- BoundField.cs
- WS2007FederationHttpBinding.cs
- IPAddressCollection.cs
- DateTimeFormat.cs
- SetterBaseCollection.cs
- NegotiationTokenAuthenticatorStateCache.cs
- MergeFilterQuery.cs
- StringCollectionEditor.cs
- WhiteSpaceTrimStringConverter.cs
- KeyNotFoundException.cs
- ComponentSerializationService.cs
- StringPropertyBuilder.cs
- QueryCacheEntry.cs
- AutomationPropertyInfo.cs
- TreeBuilderBamlTranslator.cs
- ConnectionManagementSection.cs
- FontFamilyConverter.cs
- TextBreakpoint.cs
- _ScatterGatherBuffers.cs
- URLString.cs
- SmtpReplyReader.cs
- SvcMapFileSerializer.cs
- CallTemplateAction.cs
- ClrProviderManifest.cs
- WebPartsPersonalizationAuthorization.cs
- BaseDataListDesigner.cs
- SiteMapNode.cs
- MulticastIPAddressInformationCollection.cs
- MetadataUtilsSmi.cs
- BoundingRectTracker.cs
- LeftCellWrapper.cs
- DataKeyArray.cs
- BoundsDrawingContextWalker.cs
- FlowDocumentFormatter.cs
- MonthChangedEventArgs.cs
- DBCommandBuilder.cs
- GridViewRow.cs
- DPTypeDescriptorContext.cs
- Base64WriteStateInfo.cs
- ConfigurationLocation.cs
- SqlFunctions.cs