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
- AssociatedControlConverter.cs
- ThemeDirectoryCompiler.cs
- FragmentQuery.cs
- FlowDocument.cs
- CodeCatchClauseCollection.cs
- CompilerParameters.cs
- SimpleType.cs
- ChannelCacheDefaults.cs
- HttpCachePolicyBase.cs
- DashStyles.cs
- GPRECT.cs
- DocumentViewerHelper.cs
- AutomationIdentifierGuids.cs
- CqlParser.cs
- Roles.cs
- WebPartConnectionsDisconnectVerb.cs
- counter.cs
- LocalizationParserHooks.cs
- ResourceDefaultValueAttribute.cs
- PageCodeDomTreeGenerator.cs
- XmlElement.cs
- TraceSource.cs
- SecurityPolicySection.cs
- XmlSerializerVersionAttribute.cs
- WmpBitmapEncoder.cs
- BooleanAnimationBase.cs
- TdsParameterSetter.cs
- DataGridCommandEventArgs.cs
- HostingEnvironmentSection.cs
- References.cs
- ObjectStateManagerMetadata.cs
- RemoteWebConfigurationHostServer.cs
- TypedDataSourceCodeGenerator.cs
- UnmanagedMemoryStream.cs
- ResourceReferenceKeyNotFoundException.cs
- OleDbException.cs
- CacheDependency.cs
- Geometry3D.cs
- TextSegment.cs
- _NetRes.cs
- Missing.cs
- Assert.cs
- EventLogEntry.cs
- SecureConversationServiceElement.cs
- SocketManager.cs
- CellLabel.cs
- ServiceDescriptions.cs
- Int32CollectionValueSerializer.cs
- ReplyChannelAcceptor.cs
- CompoundFileIOPermission.cs
- PathFigure.cs
- InArgumentConverter.cs
- Model3D.cs
- DbTypeMap.cs
- TextProviderWrapper.cs
- ParagraphResult.cs
- WSHttpBindingBase.cs
- ServiceOperationParameter.cs
- TextRangeProviderWrapper.cs
- DataGridTableCollection.cs
- CopyOfAction.cs
- EntityDataSourceDesigner.cs
- GPPOINTF.cs
- MetadataAssemblyHelper.cs
- oledbmetadatacolumnnames.cs
- DetailsView.cs
- CompilerParameters.cs
- ObjectCloneHelper.cs
- BmpBitmapEncoder.cs
- FormsAuthenticationEventArgs.cs
- HandlerBase.cs
- MultipleViewPattern.cs
- CurrencyWrapper.cs
- NavigationFailedEventArgs.cs
- ListViewInsertionMark.cs
- MULTI_QI.cs
- DataTablePropertyDescriptor.cs
- ValueQuery.cs
- BoundPropertyEntry.cs
- WebHttpBindingElement.cs
- HitTestWithPointDrawingContextWalker.cs
- PreservationFileReader.cs
- SoapCodeExporter.cs
- InputMethodStateChangeEventArgs.cs
- SEHException.cs
- AdornedElementPlaceholder.cs
- ScriptResourceDefinition.cs
- RedirectionProxy.cs
- InstanceOwnerQueryResult.cs
- ServiceOperationParameter.cs
- XamlTypeMapper.cs
- HierarchicalDataBoundControl.cs
- OutputChannel.cs
- RemoteWebConfigurationHostStream.cs
- XPathAncestorQuery.cs
- FloaterParaClient.cs
- AppliedDeviceFiltersDialog.cs
- X509ClientCertificateAuthenticationElement.cs
- Crypto.cs
- TransactionScope.cs