Export (0) Print
Expand All

ActivityBind Class

Note: This API is now obsolete.

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)

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityBind : MarkupExtension

The ActivityBind type exposes the following members.

Public methodActivityBind()Initializes a new instance of the ActivityBind class.
Public methodActivityBind(String)Initializes a new instance of the ActivityBind class with the name parameter.
Public methodActivityBind(String, String)Initializes a new instance of the ActivityBind class with name and path parameters.

Public propertyNameGets or sets the name of the Activity that the ActivityBind points to.
Public propertyPathGets or sets the path for a member of the target activity. The value can use dotted notation to indicate a path to a nested value. For example, a path of "A.B.C" indicates that the ActivityBind is to a field or property named 'C', which is a member of the field or property 'B', which in turn is a field or property 'A', which is a member of the target activity.
Public propertyUserDataGets an IDictionary of user data relating to this instance.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetRuntimeValue(Activity)Gets the Object representing the run-time value of this ActivityBind.
Public methodGetRuntimeValue(Activity, Type)Gets the Object representing the run-time value of this ActivityBind.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodProvideValueReturns the current instance of this class. (Overrides MarkupExtension.ProvideValue(IServiceProvider).)
Public methodSetRuntimeValueSets the run-time value.
Public methodToStringCalculates and returns a combination of the Name and Path property strings. (Overrides Object.ToString().)


This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

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.

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.6
Obsolete (compiler warning) in 4.5
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5.2

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.

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