Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / tx / System / Transactions / Trace / TraceRecord.cs / 1305376 / TraceRecord.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Transactions.Diagnostics { using System; using System.Diagnostics; using System.Globalization; using System.Text; using System.Xml; ////// Base class for the team-specific traces that contain structured data. /// internal abstract class TraceRecord { internal protected const string EventIdBase = "http://schemas.microsoft.com/2004/03/Transactions/"; internal protected const string NamespaceSuffix = "TraceRecord"; ////// Defines object layout. /// internal virtual string EventId { get { return EventIdBase + "Empty" + TraceRecord.NamespaceSuffix; } } public override string ToString() { PlainXmlWriter xml = new PlainXmlWriter(); WriteTo(xml); return xml.ToString(); } internal abstract void WriteTo(XmlWriter xml); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Transactions.Diagnostics { using System; using System.Diagnostics; using System.Globalization; using System.Text; using System.Xml; ////// Base class for the team-specific traces that contain structured data. /// internal abstract class TraceRecord { internal protected const string EventIdBase = "http://schemas.microsoft.com/2004/03/Transactions/"; internal protected const string NamespaceSuffix = "TraceRecord"; ////// Defines object layout. /// internal virtual string EventId { get { return EventIdBase + "Empty" + TraceRecord.NamespaceSuffix; } } public override string ToString() { PlainXmlWriter xml = new PlainXmlWriter(); WriteTo(xml); return xml.ToString(); } internal abstract void WriteTo(XmlWriter xml); } } // 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
- ToolStripMenuItem.cs
- DataViewSettingCollection.cs
- PageContentAsyncResult.cs
- CompositeActivityValidator.cs
- RectKeyFrameCollection.cs
- Preprocessor.cs
- DynamicRendererThreadManager.cs
- ComboBoxHelper.cs
- BitStack.cs
- ColorContext.cs
- Converter.cs
- DocumentViewerBaseAutomationPeer.cs
- ConnectionConsumerAttribute.cs
- QueryInterceptorAttribute.cs
- ItemChangedEventArgs.cs
- MaskDescriptor.cs
- ProtocolElementCollection.cs
- TextRangeSerialization.cs
- StateRuntime.cs
- ResourcesBuildProvider.cs
- Collection.cs
- WindowsStartMenu.cs
- EmptyEnumerator.cs
- ConnectionConsumerAttribute.cs
- ResourceAttributes.cs
- DataSourceControlBuilder.cs
- ExeContext.cs
- StringDictionaryCodeDomSerializer.cs
- InvalidDataException.cs
- FontInfo.cs
- PowerStatus.cs
- BaseProcessor.cs
- SparseMemoryStream.cs
- RSAPKCS1KeyExchangeFormatter.cs
- KeyGesture.cs
- _ListenerResponseStream.cs
- BroadcastEventHelper.cs
- TraceContext.cs
- SchemaNotation.cs
- ReflectionUtil.cs
- _NestedMultipleAsyncResult.cs
- ChtmlLinkAdapter.cs
- MenuItemBinding.cs
- AutoResizedEvent.cs
- HtmlToClrEventProxy.cs
- SplashScreen.cs
- GeneralTransformGroup.cs
- ListItemParagraph.cs
- TransactionWaitAsyncResult.cs
- SamlAssertionKeyIdentifierClause.cs
- DataGridViewTextBoxEditingControl.cs
- CorrelationActionMessageFilter.cs
- FixedPageProcessor.cs
- ScriptManagerProxy.cs
- EastAsianLunisolarCalendar.cs
- EntityDataSourceWizardForm.cs
- VerbConverter.cs
- WebPartDisplayMode.cs
- XmlNodeChangedEventManager.cs
- ResetableIterator.cs
- BaseTreeIterator.cs
- BatchParser.cs
- webbrowsersite.cs
- BamlCollectionHolder.cs
- CodePrimitiveExpression.cs
- EventTrigger.cs
- MeasureItemEvent.cs
- SoapFormatter.cs
- HttpCookiesSection.cs
- FilteredDataSetHelper.cs
- DelegateTypeInfo.cs
- SocketAddress.cs
- FormViewUpdatedEventArgs.cs
- SqlStream.cs
- FixedStringLookup.cs
- StringCollection.cs
- DataGridToolTip.cs
- DataGrid.cs
- ResourceProviderFactory.cs
- ActiveDocumentEvent.cs
- ClosureBinding.cs
- ObjectSet.cs
- TryCatchDesigner.xaml.cs
- PerformanceCounterPermissionEntryCollection.cs
- LinqDataSourceInsertEventArgs.cs
- BitConverter.cs
- ResourcePermissionBase.cs
- ForEachAction.cs
- FilterQueryOptionExpression.cs
- LinqDataSourceUpdateEventArgs.cs
- KeyboardEventArgs.cs
- ImageClickEventArgs.cs
- ButtonAutomationPeer.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- RequestQueryProcessor.cs
- AutomationPatternInfo.cs
- FixedDSBuilder.cs
- SafeMILHandle.cs
- PerformanceCounterLib.cs
- ipaddressinformationcollection.cs