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
- WriteableBitmap.cs
- IconBitmapDecoder.cs
- RTTrackingProfile.cs
- OrderablePartitioner.cs
- Point4D.cs
- AmbientValueAttribute.cs
- TreeViewItem.cs
- DataContractSerializerOperationBehavior.cs
- HexParser.cs
- Debug.cs
- LambdaCompiler.Binary.cs
- FunctionNode.cs
- PropertyDescriptorCollection.cs
- WindowsRichEditRange.cs
- X509WindowsSecurityToken.cs
- ContentType.cs
- TrustManagerPromptUI.cs
- Point3DAnimationUsingKeyFrames.cs
- TypefaceMap.cs
- GridViewUpdateEventArgs.cs
- FieldInfo.cs
- HMAC.cs
- MailSettingsSection.cs
- KeysConverter.cs
- EmptyQuery.cs
- BrowserDefinitionCollection.cs
- EndSelectCardRequest.cs
- SqlProviderManifest.cs
- SudsCommon.cs
- IisTraceWebEventProvider.cs
- DragDrop.cs
- WebResourceAttribute.cs
- DataService.cs
- GeometryValueSerializer.cs
- DTCTransactionManager.cs
- RadioButtonFlatAdapter.cs
- MessageDecoder.cs
- ContainerParagraph.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- BuildProviderCollection.cs
- WCFServiceClientProxyGenerator.cs
- FolderBrowserDialog.cs
- TreeNodeBindingCollection.cs
- DatatypeImplementation.cs
- XamlReaderHelper.cs
- documentsequencetextcontainer.cs
- DbConnectionFactory.cs
- SqlGatherProducedAliases.cs
- ShaderEffect.cs
- AssemblyBuilderData.cs
- HMACSHA384.cs
- DataPointer.cs
- XPathDocumentNavigator.cs
- SymbolPair.cs
- FreeFormDragDropManager.cs
- BaseUriHelper.cs
- HybridDictionary.cs
- KeyEvent.cs
- DefinitionBase.cs
- AncestorChangedEventArgs.cs
- DataProtection.cs
- LongTypeConverter.cs
- TypedElement.cs
- DataGridItem.cs
- MetadataItem_Static.cs
- PagerSettings.cs
- DependencyPropertyConverter.cs
- DataGridParentRows.cs
- NullableIntAverageAggregationOperator.cs
- DocumentViewer.cs
- LoginView.cs
- EventItfInfo.cs
- DurationConverter.cs
- TextDocumentView.cs
- DESCryptoServiceProvider.cs
- ConstantExpression.cs
- MenuItemStyle.cs
- TypeConvertions.cs
- ViewSimplifier.cs
- SqlBooleanMismatchVisitor.cs
- httpapplicationstate.cs
- KeyGestureConverter.cs
- FixedSOMTextRun.cs
- AttributeQuery.cs
- WeakHashtable.cs
- BridgeDataRecord.cs
- AuthorizationRule.cs
- UnitControl.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ConsumerConnectionPointCollection.cs
- BitmapEffectCollection.cs
- WebScriptEnablingElement.cs
- TreeNodeStyleCollection.cs
- tibetanshape.cs
- FrameworkElementAutomationPeer.cs
- MostlySingletonList.cs
- TriggerAction.cs
- _ContextAwareResult.cs
- ByteAnimation.cs
- DataGridViewBindingCompleteEventArgs.cs