Edit

Bagikan melalui


ActivityBind Class

Definition

Caution

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

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

public ref class ActivityBind sealed : System::Workflow::ComponentModel::Serialization::MarkupExtension
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))]
public sealed class ActivityBind : System.Workflow.ComponentModel.Serialization.MarkupExtension
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityBind : System.Workflow.ComponentModel.Serialization.MarkupExtension
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))>]
type ActivityBind = class
    inherit MarkupExtension
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ActivityBindValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityBind = class
    inherit MarkupExtension
Public NotInheritable Class ActivityBind
Inherits MarkupExtension
Inheritance
ActivityBind
Attributes

Remarks

Note

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.

Constructors

ActivityBind()

Initializes a new instance of the ActivityBind class.

ActivityBind(String)

Initializes a new instance of the ActivityBind class with the name parameter.

ActivityBind(String, String)

Initializes a new instance of the ActivityBind class with name and path parameters.

Properties

Name

Gets or sets the name of the Activity that the ActivityBind points to.

Path

Gets 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.

UserData

Gets an IDictionary of user data relating to this instance.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetRuntimeValue(Activity)

Gets the Object representing the run-time value of this ActivityBind.

GetRuntimeValue(Activity, Type)

Gets the Object representing the run-time value of this ActivityBind.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProvideValue(IServiceProvider)

Returns the current instance of this class.

SetRuntimeValue(Activity, Object)

Sets the run-time value.

ToString()

Calculates and returns a combination of the Name and Path property strings.

Applies to