ToFormattedString Method

MS Activities Extensions

Collapse imageExpand ImageCopy imageCopyHover image
Returns the record as a formatted string

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 ActivityStateRecord record,
	TrackingOptions options = TrackingOptions.Default
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function ToFormattedString ( _
	record As ActivityStateRecord, _
	Optional options As TrackingOptions = TrackingOptions.Default _
) As String
Visual C++
public:
[ExtensionAttribute]
static String^ ToFormattedString(
	ActivityStateRecord^ record, 
	TrackingOptions options = TrackingOptions::Default
)

Parameters

record
Type: System.Activities.Tracking..::..ActivityStateRecord
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 tracking record

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ActivityStateRecord. 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).

See Also