WorkflowMarkupSerializer.EventsProperty Field
Represents an attached DependencyProperty that defines the names for event handler properties.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
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.
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);
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.