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
- ViewStateModeByIdAttribute.cs
- Themes.cs
- CompiledQuery.cs
- TextEditorCopyPaste.cs
- KerberosTicketHashIdentifierClause.cs
- Int16KeyFrameCollection.cs
- TypedDataSetSchemaImporterExtension.cs
- DispatcherExceptionEventArgs.cs
- ObjectIDGenerator.cs
- FileChangesMonitor.cs
- GetChildSubtree.cs
- CommonGetThemePartSize.cs
- Object.cs
- UIntPtr.cs
- SqlProviderUtilities.cs
- ClientSettingsProvider.cs
- WindowsAltTab.cs
- IISUnsafeMethods.cs
- MemberInfoSerializationHolder.cs
- RemoteTokenFactory.cs
- TreeWalkHelper.cs
- HttpServerVarsCollection.cs
- RuntimeHandles.cs
- XmlSchemaSet.cs
- DatatypeImplementation.cs
- EntityClassGenerator.cs
- RuntimeCompatibilityAttribute.cs
- RestHandler.cs
- CommandHelper.cs
- Freezable.cs
- ThreadInterruptedException.cs
- COAUTHINFO.cs
- SpAudioStreamWrapper.cs
- ListBoxChrome.cs
- KeysConverter.cs
- _NetRes.cs
- WebResourceAttribute.cs
- DesignerProperties.cs
- NetworkAddressChange.cs
- WebConvert.cs
- ConcurrentBag.cs
- BooleanAnimationUsingKeyFrames.cs
- BackEase.cs
- TextSearch.cs
- ValueQuery.cs
- SystemIPAddressInformation.cs
- DataSourceIDConverter.cs
- TypeConstant.cs
- MatcherBuilder.cs
- WindowsScrollBar.cs
- ControlParameter.cs
- PerformanceCounterManager.cs
- SqlConnectionFactory.cs
- GridView.cs
- Help.cs
- ConfigurationManagerHelper.cs
- DesignerCommandAdapter.cs
- HtmlToClrEventProxy.cs
- DefaultSerializationProviderAttribute.cs
- HttpMethodAttribute.cs
- LingerOption.cs
- ECDiffieHellmanPublicKey.cs
- StyleModeStack.cs
- OdbcEnvironmentHandle.cs
- EntityDataSourceConfigureObjectContext.cs
- ContentElement.cs
- TreeSet.cs
- TreeWalkHelper.cs
- KeyInterop.cs
- ImageAutomationPeer.cs
- IdentityHolder.cs
- FontSourceCollection.cs
- PerfCounters.cs
- SQLMoneyStorage.cs
- updateconfighost.cs
- PersonalizationProviderCollection.cs
- QueryOperator.cs
- TdsParserStaticMethods.cs
- PeerCollaboration.cs
- MsmqInputMessage.cs
- NavigationPropertyEmitter.cs
- Material.cs
- safesecurityhelperavalon.cs
- OracleSqlParser.cs
- XmlFormatReaderGenerator.cs
- PageThemeCodeDomTreeGenerator.cs
- EntityViewGenerationAttribute.cs
- KeyInterop.cs
- CalendarAutoFormat.cs
- GlobalAllocSafeHandle.cs
- ScalarType.cs
- RoleManagerModule.cs
- HebrewNumber.cs
- ImageBrush.cs
- TouchFrameEventArgs.cs
- EditorResources.cs
- Ops.cs
- PropertyTabAttribute.cs
- CommandSet.cs
- ObjectItemCollectionAssemblyCacheEntry.cs