TrackingService::GetProfile Method (Guid)

 

Must be overridden in the derived class, and when implemented, returns the tracking profile for the specified workflow instance.

Namespace:   System.Workflow.Runtime.Tracking
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

public protected:
virtual TrackingProfile^ GetProfile(
	Guid workflowInstanceId
) abstract

Parameters

workflowInstanceId
Type: System::Guid

The Guid of the workflow instance.

Return Value

Type: System.Workflow.Runtime.Tracking::TrackingProfile^

The tracking profile for the specified workflow instance.

A tracking service is responsible for managing the tracking profiles available for specific workflow types and specific workflow instances. You can implement this management in whatever manner you choose. For example, you can return the same TrackingProfile for every workflow Type and workflow instance; or you can manage a sophisticated store of tracking profiles referenced by workflow instance, workflow Type, and Version.

The following example shows an implementation of the GetProfile method. In this example, several overloads of the GetProfile method call a single private GetProfile method, which returns a hard-coded, default tracking profile. This example is from the Termination Tracking Service SDK sample. For more information, seeTermination Tracking Service Sample.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: