Export (0) Print
Expand All

ActivityBind Class

Binds an activity's property to a property, field, indexer, method, event, or another activity's property. This class cannot be inherited.

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

public sealed class ActivityBind : MarkupExtension

ActivityBind allows data to flow from one activity to another activity within a workflow. ActivityBind is a declarative way of doing what otherwise must be accomplished using code, and therefore is a key element of most workflows that are written entirely in XAML markup.

ActivityBind represents a bind expression that has an Activity member as a target. The target activity member can be a property, an event, or a field. An Activity property or method can use ActivityBind to bind to another Activity member.

For example, if activity1 has property1 set to some value and if activity2 has its property1 set to ActivityBind with Name="activity1" and Path="property1", at run time the activity2.property1 gets its value from activity1.property1.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2014 Microsoft