WorkflowMarkupSerializer.EventsProperty Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an attached DependencyProperty that defines the names for event handler properties.
public: static initonly System::Workflow::ComponentModel::DependencyProperty ^ EventsProperty;
public static readonly System.Workflow.ComponentModel.DependencyProperty EventsProperty;
staticval mutable EventsProperty : System.Workflow.ComponentModel.DependencyProperty
Public Shared ReadOnly EventsProperty As DependencyProperty
Field Value
Examples
The following example shows how to set the value of the EventsProperty dependency property.
CodeActivity code1 = new CodeActivity();
Hashtable eventsHashtable = new Hashtable();
eventsHashtable.Add("ExecuteCode", "methodName1");
code1.SetValue(WorkflowMarkupSerializer.EventsProperty, eventsHashtable);
Remarks
This property is used only at design time, while programmatically emitting a workflow instance using the object model. It represents XAML that references the event handler, which has not been compiled yet. This property contains a Hashtable
, with event name and event handler name-value pairs. After compilation, the event property is associated directly with the handler.
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.