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
- FrameDimension.cs
- PerfCounterSection.cs
- ComNativeDescriptor.cs
- dtdvalidator.cs
- XmlSchemaIdentityConstraint.cs
- SafeFindHandle.cs
- ChineseLunisolarCalendar.cs
- WebServiceReceiveDesigner.cs
- CrossAppDomainChannel.cs
- SessionStateSection.cs
- TdsValueSetter.cs
- VersionUtil.cs
- ErrorProvider.cs
- _NetworkingPerfCounters.cs
- CharAnimationUsingKeyFrames.cs
- HwndSourceParameters.cs
- SelectionPatternIdentifiers.cs
- _OverlappedAsyncResult.cs
- DeclarativeCatalogPart.cs
- FileDialogCustomPlacesCollection.cs
- Bits.cs
- PropertyRecord.cs
- SelfIssuedTokenFactoryCredential.cs
- CompiledRegexRunnerFactory.cs
- RegexCharClass.cs
- DeobfuscatingStream.cs
- SamlConditions.cs
- KeyValueInternalCollection.cs
- RuntimeIdentifierPropertyAttribute.cs
- BufferModesCollection.cs
- WeakReadOnlyCollection.cs
- StateMachineExecutionState.cs
- Window.cs
- SystemThemeKey.cs
- JsonByteArrayDataContract.cs
- Pkcs7Signer.cs
- BasicBrowserDialog.designer.cs
- TemplateApplicationHelper.cs
- GridViewRowEventArgs.cs
- ArraySegment.cs
- List.cs
- XmlElementList.cs
- TemplateField.cs
- ExpressionConverter.cs
- UnsafeNativeMethodsTablet.cs
- XmlNavigatorStack.cs
- KeyEvent.cs
- InterleavedZipPartStream.cs
- KeyTime.cs
- Content.cs
- CheckoutException.cs
- Ray3DHitTestResult.cs
- CodeExpressionStatement.cs
- HtmlTableCell.cs
- RootBuilder.cs
- EntityParameter.cs
- EventWaitHandle.cs
- ToolTipService.cs
- NativeMethods.cs
- EventBookmark.cs
- HttpRequestMessageProperty.cs
- XmlIlVisitor.cs
- BitVec.cs
- DataObjectMethodAttribute.cs
- PasswordTextNavigator.cs
- SignedXml.cs
- XmlAnyElementAttribute.cs
- Globals.cs
- HwndHost.cs
- OleDbInfoMessageEvent.cs
- Parser.cs
- CreateCardRequest.cs
- ToolStripMenuItem.cs
- HelpKeywordAttribute.cs
- WebPartConnectionsDisconnectVerb.cs
- WindowsFormsLinkLabel.cs
- ClientTargetSection.cs
- BindingListCollectionView.cs
- LineServicesRun.cs
- ChameleonKey.cs
- ArgumentNullException.cs
- PropertyChangeTracker.cs
- DrawingBrush.cs
- XmlBufferReader.cs
- SortedList.cs
- QilParameter.cs
- DependencyPropertyAttribute.cs
- AQNBuilder.cs
- SHA256.cs
- HandlerBase.cs
- DocumentPageHost.cs
- FixedTextBuilder.cs
- CopyEncoder.cs
- EnumerableCollectionView.cs
- WindowsAuthenticationModule.cs
- ClientSponsor.cs
- StorageScalarPropertyMapping.cs
- FolderBrowserDialog.cs
- MailHeaderInfo.cs
- ExpressionEditorAttribute.cs