Microsoft.Activities.Extensions |
TrackingRecordExtensions..::..ToFormattedString Method |
TrackingRecordExtensions Class See Also Send Feedback |
Traces a tracking record
Namespace: Microsoft.Activities.Extensions.Tracking
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)
Syntax
C# |
---|
public static string ToFormattedString( this TrackingRecord record, TrackingOptions options = TrackingOptions.Default ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function ToFormattedString ( _ record As TrackingRecord, _ Optional options As TrackingOptions = TrackingOptions.Default _ ) As String |
Visual C++ |
---|
public: [ExtensionAttribute] static String^ ToFormattedString( TrackingRecord^ record, TrackingOptions options = TrackingOptions::Default ) |
Parameters
- record
- Type: System.Activities.Tracking..::..TrackingRecord
The record to trace
- options (Optional)
- Type: Microsoft.Activities.Extensions.Tracking..::..TrackingOptions
The tracking options to use, if not provided will use the TrackingOptions.Default value
Return Value
The formatted string.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type TrackingRecord. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
The default ToString() method of tracking records produces difficult to read text
The extensions provide formatted indented text designed to make it more readable