Multiple choice technology programming languages

How to Get the value of an Inargument inside a custom activity?

  1. Using InArgument Name

  2. Using context.GetValue(InArgumentName)

  3. InArgumentName.Get(context)

  4. InArgument.Get()

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

To access InArgument values within a custom activity's Execute method in WF 4.0, you have two correct approaches: either use context.GetValue(inArgument) or call inArgument.Get(context). Both methods require the ActivityContext parameter to resolve the argument's value at runtime. Simply referencing the argument by name or calling Get() without context will not work.