Export (0) Print
Expand All

WorkflowMarkupSerializer.EventsProperty Field

Represents an attached DependencyProperty that defines the names for event handler properties.

Namespace:  System.Workflow.ComponentModel.Serialization
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public static readonly DependencyProperty EventsProperty

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);

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

Windows 8.1, Windows Server 2012 R2, 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.

© 2014 Microsoft