Which code segment should you use?

You are creating a Microsoft Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You implement a custom tracking profile in the application to
monitor and debug the workflow. You create a CodeActivity activity named AddToCart in the application. You need to define an ActivityTrackingCondition class that matches the AddToCart activity.
Which code segment should you use?

You are creating a Microsoft Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You implement a custom tracking profile in the application to
monitor and debug the workflow. You create a CodeActivity activity named AddToCart in the application. You need to define an ActivityTrackingCondition class that matches the AddToCart activity.
Which code segment should you use?

A.
ActivityTrackPoint activityPoint = new ActivityTrackPoint();ActivityTrackingLocation activityLocation = new ActivityTrackingLocation(typeof(CodeActivity));ActivityTrackingCondition activityCondition = new ActivityTrackingCondition("Name", "AddToCart");activityCondition.Operator = ComparisonOperator.Equals;activityLocation.Conditions.Add(activityCondition);activityPoint.ExcludedLocations.Add (

B.
ActivityTrackPoint activityPoint = new ActivityTrackPoint();ActivityTrackingLocation activityLocation = new ActivityTrackingLocation(typeof(CodeActivity));ActivityTrackingCondition activityCondition = new ActivityTrackingCondition("Name", "AddToCart");activityCondition.Operator = ComparisonOperator.Equals;activityLocation.Conditions.Add(activityCondition);activityPoint.MatchingLocations.Add (

C.
ActivityTrackPoint activityPoint = new ActivityTrackPoint();ActivityTrackingLocation activityLocation = new ActivityTrackingLocation(typeof(CallExternalMethodActivity));ActivityTrackingCondition activityCondition = new ActivityTrackingCondition("ActivityName", "AddToCart");activityCondition.Operator =
ComparisonOperator.Equals;activityLocation.Conditions.Add(activityCondition);activityPoint.MatchingLocations.Add(

D.
ActivityTrackPoint activityPoint = new ActivityTrackPoint();ActivityTrackingLocation activityLocation = new ActivityTrackingLocation(typeof(CodeActivity));ActivityTrackingCondition activityCondition = new ActivityTrackingCondition("ActivityName", "AddToCart");activityCondition.Operator = ComparisonOperator.Equals;activityLocation.Conditions.Add(activityCondition);activityPoint.MatchingLocations.Add(



Leave a Reply 0

Your email address will not be published. Required fields are marked *