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
- UniqueIdentifierService.cs
- WmpBitmapDecoder.cs
- NonParentingControl.cs
- InternalControlCollection.cs
- MemoryMappedFileSecurity.cs
- FreezableCollection.cs
- Queue.cs
- DocumentViewerAutomationPeer.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- BulletChrome.cs
- WebPartDeleteVerb.cs
- Canvas.cs
- ActivityWithResultValueSerializer.cs
- HebrewNumber.cs
- XPathNode.cs
- UpdateTranslator.cs
- CryptoConfig.cs
- FunctionDescription.cs
- _Win32.cs
- BitmapMetadataBlob.cs
- HttpHeaderCollection.cs
- AttributeCollection.cs
- XPathParser.cs
- UIElementPropertyUndoUnit.cs
- WebBrowserUriTypeConverter.cs
- LambdaCompiler.cs
- DataColumnChangeEvent.cs
- DoubleCollectionValueSerializer.cs
- complextypematerializer.cs
- ErrorWebPart.cs
- DictionaryContent.cs
- GenericParameterDataContract.cs
- ReflectEventDescriptor.cs
- VerificationException.cs
- Activity.cs
- ReadOnlyDictionary.cs
- XmlCharacterData.cs
- MetabaseSettings.cs
- WebResourceAttribute.cs
- VScrollProperties.cs
- PageVisual.cs
- BitmapSource.cs
- CodeRemoveEventStatement.cs
- Int32EqualityComparer.cs
- controlskin.cs
- EditorZone.cs
- CellConstantDomain.cs
- Operator.cs
- UnsafeNativeMethods.cs
- BufferedGraphicsContext.cs
- XsltInput.cs
- ForeignConstraint.cs
- ServicePoint.cs
- Exceptions.cs
- WindowsClientCredential.cs
- RoutedEvent.cs
- Section.cs
- BufferedStream2.cs
- smtpconnection.cs
- CollectionViewProxy.cs
- KeyedCollection.cs
- Attributes.cs
- ExpressionHelper.cs
- PersonalizablePropertyEntry.cs
- SelectionListDesigner.cs
- HttpMethodConstraint.cs
- sqlpipe.cs
- HandlerMappingMemo.cs
- BasicHttpBinding.cs
- SqlCachedBuffer.cs
- MouseWheelEventArgs.cs
- DataSourceProvider.cs
- BaseCollection.cs
- PassportAuthenticationEventArgs.cs
- BitmapVisualManager.cs
- FixedSOMTextRun.cs
- DigitShape.cs
- WebPartCloseVerb.cs
- OneOfScalarConst.cs
- DelegateSerializationHolder.cs
- Schema.cs
- ShaderEffect.cs
- PropertySet.cs
- SerializationInfo.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- XmlSchemaComplexContent.cs
- Message.cs
- CacheMode.cs
- ModelProperty.cs
- SafeNativeMethodsCLR.cs
- COM2FontConverter.cs
- ConstrainedDataObject.cs
- ApplicationInfo.cs
- Domain.cs
- ByeMessageCD1.cs
- ItemsPresenter.cs
- WebPartConnectionsDisconnectVerb.cs
- DesignColumn.cs
- FormsAuthenticationConfiguration.cs
- ResourcePropertyMemberCodeDomSerializer.cs