Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeFormImporter.cs
- EnumType.cs
- Automation.cs
- InternalConfigHost.cs
- SessionStateContainer.cs
- CompoundFileReference.cs
- GeometryCombineModeValidation.cs
- DocumentXmlWriter.cs
- XmlComment.cs
- WebServiceFaultDesigner.cs
- CounterNameConverter.cs
- ExpressionsCollectionConverter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ParsedRoute.cs
- InvalidCastException.cs
- Formatter.cs
- DocumentReferenceCollection.cs
- EndEvent.cs
- ClientBuildManagerCallback.cs
- TableProviderWrapper.cs
- ActivationProxy.cs
- EncoderFallback.cs
- DocumentViewerAutomationPeer.cs
- RemoteCryptoSignHashRequest.cs
- BufferedWebEventProvider.cs
- SQLBinary.cs
- ClonableStack.cs
- DelegatingConfigHost.cs
- DocumentReference.cs
- Privilege.cs
- ImportContext.cs
- FormsAuthenticationTicket.cs
- XmlSchemas.cs
- RelationshipEnd.cs
- ConfigurationValues.cs
- ComEventsSink.cs
- ErrorFormatterPage.cs
- ActivityBindForm.cs
- MULTI_QI.cs
- DataServiceProcessingPipelineEventArgs.cs
- OutputCacheModule.cs
- DataControlLinkButton.cs
- Dictionary.cs
- XhtmlBasicListAdapter.cs
- PrintPreviewControl.cs
- hebrewshape.cs
- FileLevelControlBuilderAttribute.cs
- Int32.cs
- EventLogPermission.cs
- TextPointer.cs
- TablePatternIdentifiers.cs
- Internal.cs
- StringValidator.cs
- CultureTable.cs
- WhiteSpaceTrimStringConverter.cs
- UserControlDocumentDesigner.cs
- SystemMulticastIPAddressInformation.cs
- TextParentUndoUnit.cs
- updatecommandorderer.cs
- OleDbStruct.cs
- InvokeCompletedEventArgs.cs
- XmlSerializerSection.cs
- Opcode.cs
- DocumentGridPage.cs
- XmlIgnoreAttribute.cs
- StrokeIntersection.cs
- SearchForVirtualItemEventArgs.cs
- SqlTypesSchemaImporter.cs
- OutputCacheProfileCollection.cs
- EntityRecordInfo.cs
- MapPathBasedVirtualPathProvider.cs
- XmlCustomFormatter.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ObjectStateEntryDbDataRecord.cs
- FormViewUpdateEventArgs.cs
- Gdiplus.cs
- Query.cs
- XmlUnspecifiedAttribute.cs
- ServiceOperationUIEditor.cs
- XmlQualifiedName.cs
- Char.cs
- LambdaCompiler.Lambda.cs
- ProjectionQueryOptionExpression.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- MouseOverProperty.cs
- XmlSchemaElement.cs
- PasswordTextNavigator.cs
- StaticDataManager.cs
- XamlTemplateSerializer.cs
- OrderingInfo.cs
- ObjectNotFoundException.cs
- BamlResourceDeserializer.cs
- RowParagraph.cs
- DataColumn.cs
- StorageRoot.cs
- XmlCollation.cs
- GPPOINT.cs
- CompoundFileReference.cs
- Attachment.cs
- TreeNode.cs