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
- ParameterReplacerVisitor.cs
- SqlDataSourceCommandParser.cs
- CryptoStream.cs
- AspNetSynchronizationContext.cs
- LabelLiteral.cs
- XPathBinder.cs
- RadioButtonFlatAdapter.cs
- hresults.cs
- HyperLinkField.cs
- TextBreakpoint.cs
- BamlResourceContent.cs
- PathParser.cs
- X509ChainPolicy.cs
- DbParameterHelper.cs
- FontWeights.cs
- SequenceRange.cs
- Helpers.cs
- DataGridViewEditingControlShowingEventArgs.cs
- nulltextcontainer.cs
- ClientTargetCollection.cs
- HTMLTextWriter.cs
- SiblingIterators.cs
- URLAttribute.cs
- Convert.cs
- BinaryMessageFormatter.cs
- TreeNodeClickEventArgs.cs
- TimelineGroup.cs
- SchemaImporter.cs
- Int32CAMarshaler.cs
- DataGridViewCellStyle.cs
- TypedReference.cs
- SetIndexBinder.cs
- ErrorInfoXmlDocument.cs
- FileReservationCollection.cs
- SecureStringHasher.cs
- ModelTypeConverter.cs
- ExclusiveTcpTransportManager.cs
- CqlGenerator.cs
- UpdatePanelTrigger.cs
- StaticContext.cs
- FontStretch.cs
- BindingList.cs
- StringReader.cs
- FormView.cs
- NativeMethods.cs
- ColorConverter.cs
- SqlCacheDependency.cs
- X509SubjectKeyIdentifierClause.cs
- StickyNoteHelper.cs
- TouchDevice.cs
- LinqDataSourceUpdateEventArgs.cs
- XmlNodeReader.cs
- NamedServiceModelExtensionCollectionElement.cs
- Identity.cs
- X500Name.cs
- BinaryFormatterWriter.cs
- ListViewGroupItemCollection.cs
- rsa.cs
- FormViewDeletedEventArgs.cs
- RawStylusInputCustomDataList.cs
- DataGridViewToolTip.cs
- SqlEnums.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlSchemaImporter.cs
- FastEncoder.cs
- _NegoStream.cs
- EventInfo.cs
- DesignerSerializerAttribute.cs
- LineMetrics.cs
- TextPointerBase.cs
- IdentityModelDictionary.cs
- ExceptionRoutedEventArgs.cs
- QilBinary.cs
- CodeTypeMember.cs
- ResourceCategoryAttribute.cs
- linebase.cs
- PackagingUtilities.cs
- TypeDelegator.cs
- SiteMapNodeItemEventArgs.cs
- Socket.cs
- TextServicesDisplayAttribute.cs
- TextDecoration.cs
- KnownAssembliesSet.cs
- ApplicationHost.cs
- DelimitedListTraceListener.cs
- RefType.cs
- SuppressMergeCheckAttribute.cs
- EventProperty.cs
- SemaphoreFullException.cs
- TreeViewTemplateSelector.cs
- EventSource.cs
- StorageRoot.cs
- RelationshipDetailsRow.cs
- cookieexception.cs
- MobileControl.cs
- CustomTrackingRecord.cs
- StringUtil.cs
- TransformValueSerializer.cs
- WsatAdminException.cs
- Documentation.cs