Runs the code-beside method associated with an activity. This class cannot be inherited.
<ToolboxBitmapAttribute(GetType(CodeActivity), "Resources.code.png")> _ Public NotInheritable Class CodeActivity _ Inherits Activity
Dim instance As CodeActivity
[ToolboxBitmapAttribute(typeof(CodeActivity), "Resources.code.png")] public sealed class CodeActivity : Activity
[ToolboxBitmapAttribute(typeof(CodeActivity), L"Resources.code.png")] public ref class CodeActivity sealed : public Activity
public final class CodeActivity extends Activity
Code-beside methods invoked by CodeActivity are executed in a synchronous manner; CodeActivity does not yield its thread until the thread is finished. Therefore, the execution of the code-beside method is expected to be performed and should not block with a dependency on some external resource. For example, the code-beside method should typically not invoke a Web service.
The typical use of the CodeActivity is to examine workflow instance state, and change local variables and messages.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003