Επεξεργασία

Κοινή χρήση μέσω


ActivityBind.Path Property

Definition

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.

public:
 property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindPathTypeConverter))]
public string Path { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ActivityBindPathTypeConverter))>]
member this.Path : string with get, set
Public Property Path As String

Property Value

The path of the data item of interest on the chosen Activity.

Attributes

Exceptions

Occurs when you attempt to set this value when the ActivityBind is not in design mode.

Examples

This example illustrates creating and using an ActivityBind, and also setting the Name and Path.

This code example is part of the Throw Activity SDK sample and is from the ThrowActivity.cs file. For more information, see Using the ThrowActivity Activity.

Remarks

Caution

This property cannot be set at run time.

Applies to