Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / Diagnostics / DiagnosticTraceSource.cs / 1305376 / DiagnosticTraceSource.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Runtime.Diagnostics
{
using System;
using System.Diagnostics;
class DiagnosticTraceSource : TraceSource
{
const string PropagateActivityValue = "propagateActivity";
internal DiagnosticTraceSource(string name)
: base(name)
{
}
protected override string[] GetSupportedAttributes()
{
return new string[] { DiagnosticTraceSource.PropagateActivityValue };
}
internal bool PropagateActivity
{
get
{
bool retval = false;
string attributeValue = this.Attributes[DiagnosticTraceSource.PropagateActivityValue];
if (!string.IsNullOrEmpty(attributeValue))
{
if (!bool.TryParse(attributeValue, out retval))
{
retval = false;
}
}
return retval;
}
set
{
this.Attributes[DiagnosticTraceSource.PropagateActivityValue] = value.ToString();
}
}
}
}
// 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
- WriteStateInfoBase.cs
- EventMappingSettingsCollection.cs
- DebugView.cs
- _ConnectStream.cs
- EventSourceCreationData.cs
- ResourceWriter.cs
- MemberDomainMap.cs
- tooltip.cs
- AppearanceEditorPart.cs
- HtmlControl.cs
- TreeWalker.cs
- AdapterUtil.cs
- PriorityBinding.cs
- MobilePage.cs
- DocumentPaginator.cs
- CreateCardRequest.cs
- WebPartManagerInternals.cs
- InsufficientMemoryException.cs
- OdbcTransaction.cs
- QilUnary.cs
- RemoteWebConfigurationHostStream.cs
- listitem.cs
- ConstructorNeedsTagAttribute.cs
- ResourceManagerWrapper.cs
- BindingContext.cs
- BaseCodeDomTreeGenerator.cs
- ErrorTableItemStyle.cs
- Registry.cs
- SynchronizedPool.cs
- HtmlLiteralTextAdapter.cs
- WebServiceMethodData.cs
- Optimizer.cs
- EventProxy.cs
- GACIdentityPermission.cs
- LinqDataSourceDeleteEventArgs.cs
- SettingsProviderCollection.cs
- ButtonChrome.cs
- dataprotectionpermission.cs
- NaturalLanguageHyphenator.cs
- Paragraph.cs
- TriggerCollection.cs
- FormattedText.cs
- DiagnosticsConfiguration.cs
- ConnectionPoint.cs
- EditorZone.cs
- WorkflowEnvironment.cs
- AlphabeticalEnumConverter.cs
- OutputCacheSettingsSection.cs
- XhtmlTextWriter.cs
- LogStream.cs
- EraserBehavior.cs
- ProfileSection.cs
- ArrayExtension.cs
- NotifyParentPropertyAttribute.cs
- Context.cs
- DataRowChangeEvent.cs
- LoginUtil.cs
- Activity.cs
- HttpRuntime.cs
- StylusShape.cs
- UniqueIdentifierService.cs
- RsaKeyIdentifierClause.cs
- StructuralObject.cs
- DragEventArgs.cs
- CellParagraph.cs
- MimeMultiPart.cs
- Connector.cs
- InkCanvasAutomationPeer.cs
- DisplayNameAttribute.cs
- EqualityComparer.cs
- ClientUrlResolverWrapper.cs
- OrderedDictionary.cs
- ClientUrlResolverWrapper.cs
- PropertyToken.cs
- ConstraintStruct.cs
- MetabaseServerConfig.cs
- NullableDecimalMinMaxAggregationOperator.cs
- DataGridColumnHeaderAutomationPeer.cs
- MediaElementAutomationPeer.cs
- SortFieldComparer.cs
- EventRoute.cs
- SafeReadContext.cs
- Model3DGroup.cs
- TdsEnums.cs
- TreeNode.cs
- CompressionTransform.cs
- EncryptedData.cs
- PropertyInformationCollection.cs
- DataGridViewRowEventArgs.cs
- HtmlTableCell.cs
- CallbackException.cs
- FormViewRow.cs
- OrderedDictionaryStateHelper.cs
- TypefaceMap.cs
- XmlSchemaResource.cs
- Error.cs
- EndpointAddress.cs
- GridToolTip.cs
- IQueryable.cs
- WpfKnownMember.cs