Edit

Share via


CodeActivity.ExecuteCodeEvent Field

Definition

Represents the DependencyProperty that targets the ExecuteCode event.

public: static initonly System::Workflow::ComponentModel::DependencyProperty ^ ExecuteCodeEvent;
public static readonly System.Workflow.ComponentModel.DependencyProperty ExecuteCodeEvent;
 staticval mutable ExecuteCodeEvent : System.Workflow.ComponentModel.DependencyProperty
Public Shared ReadOnly ExecuteCodeEvent As DependencyProperty 

Field Value

Examples

The following code example demonstrates how to create a new instance of the CodeActivity and specify the handler for the ExecuteCode event.

this.DiscontinuedProduct = new System.Workflow.Activities.CodeActivity();

this.DiscontinuedProduct.Name = "DiscontinuedProduct";
this.DiscontinuedProduct.ExecuteCode += new System.EventHandler(this.DiscountedProductHandler);

Remarks

You indirectly access each public property and event of this type by the resolution of a corresponding dependency property. This dependency property is the public static field named XProperty or XEvent, where X is the corresponding property.

Applies to

See also