편집

다음을 통해 공유


TrackingService.TryGetProfile(Type, TrackingProfile) Method

Definition

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

protected public:
 abstract bool TryGetProfile(Type ^ workflowType, [Runtime::InteropServices::Out] System::Workflow::Runtime::Tracking::TrackingProfile ^ % profile);
protected internal abstract bool TryGetProfile(Type workflowType, out System.Workflow.Runtime.Tracking.TrackingProfile profile);
abstract member TryGetProfile : Type * TrackingProfile -> bool
Protected Friend MustOverride Function TryGetProfile (workflowType As Type, ByRef profile As TrackingProfile) As Boolean

Parameters

workflowType
Type

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

profile
TrackingProfile

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

Returns

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

Remarks

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.

Applies to