TrackingService::TryGetProfile Method (Type^, TrackingProfile^%)

 

Must be overridden in the derived class, and when implemented, retrieves the tracking profile for the specified workflow type if one is available.

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

public protected:
virtual bool TryGetProfile(
	Type^ workflowType,
	[OutAttribute] TrackingProfile^% profile
) abstract

Parameters

workflowType
Type: System::Type^

The Type of the workflow for which to get the tracking profile.

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

When this method returns, contains the TrackingProfile to load. This parameter is passed uninitialized.

Return Value

Type: System::Boolean

true if a TrackingProfile for the specified workflow Type is available; otherwise, false. If true, the TrackingProfile is returned in profile.

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 demonstrates an implementation of the TryGetProfile method, which calls a private GetProfile method. 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: