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
- XmlConvert.cs
- CompositeTypefaceMetrics.cs
- XmlSignificantWhitespace.cs
- NullableDecimalMinMaxAggregationOperator.cs
- RemotingConfiguration.cs
- BStrWrapper.cs
- ItemType.cs
- QuaternionAnimationUsingKeyFrames.cs
- HtmlControlPersistable.cs
- dtdvalidator.cs
- TiffBitmapEncoder.cs
- MenuItemBindingCollection.cs
- UIElement3DAutomationPeer.cs
- EdmRelationshipRoleAttribute.cs
- ViewGenResults.cs
- PowerModeChangedEventArgs.cs
- Dictionary.cs
- TargetInvocationException.cs
- DataGridViewButtonColumn.cs
- InheritanceContextChangedEventManager.cs
- FormClosedEvent.cs
- PackageProperties.cs
- ExtenderControl.cs
- PersonalizableAttribute.cs
- BaseUriHelper.cs
- SqlProcedureAttribute.cs
- TargetException.cs
- EnvelopedPkcs7.cs
- ListViewEditEventArgs.cs
- XmlSignatureManifest.cs
- DataList.cs
- NativeMethods.cs
- DrawingCollection.cs
- SafeSecurityHandles.cs
- ContainerParaClient.cs
- DataTableReader.cs
- Hash.cs
- Point3DCollectionConverter.cs
- GeometryConverter.cs
- DataGridViewHeaderCell.cs
- BitmapEffectGroup.cs
- CompilerGeneratedAttribute.cs
- DataSvcMapFile.cs
- PenCursorManager.cs
- ListenerAdapter.cs
- ComponentGuaranteesAttribute.cs
- smtpconnection.cs
- StringReader.cs
- QuaternionRotation3D.cs
- Point3DCollectionValueSerializer.cs
- ServiceObjectContainer.cs
- WindowsProgressbar.cs
- HtmlInputCheckBox.cs
- LinkedResourceCollection.cs
- GridProviderWrapper.cs
- AdornedElementPlaceholder.cs
- TraceSection.cs
- UInt16.cs
- EventLogPermission.cs
- ViewBox.cs
- CompositeClientFormatter.cs
- DataObjectMethodAttribute.cs
- IntegerValidatorAttribute.cs
- WindowsAuthenticationModule.cs
- PageRequestManager.cs
- ProxySimple.cs
- EmbeddedMailObject.cs
- Types.cs
- WebRequest.cs
- PointKeyFrameCollection.cs
- QueryRewriter.cs
- CodeTypeDeclarationCollection.cs
- PathData.cs
- SchemaTableColumn.cs
- DBNull.cs
- wmiprovider.cs
- Object.cs
- RSAOAEPKeyExchangeFormatter.cs
- DocComment.cs
- InvalidDataException.cs
- ReachFixedPageSerializer.cs
- TextRangeEditLists.cs
- DetailsViewCommandEventArgs.cs
- AssemblyAttributes.cs
- LineSegment.cs
- FontSizeConverter.cs
- RelatedPropertyManager.cs
- WindowsImpersonationContext.cs
- BoundColumn.cs
- AppearanceEditorPart.cs
- RecommendedAsConfigurableAttribute.cs
- SecurityManager.cs
- SEHException.cs
- CheckPair.cs
- DataGrid.cs
- LineUtil.cs
- filewebresponse.cs
- ThousandthOfEmRealPoints.cs
- TextFormatterImp.cs
- WebConfigurationFileMap.cs