ActivityBind.Path 属性

定义

获取或设置目标活动的成员的路径。 该值可以使用点表示法来指示嵌套值的路径。 例如,“A.B.C”的路径指示 ActivityBind 是名为“C”的字段或属性,该字段或属性“B”又是字段或属性“A”的成员,而该字段或属性“A”是目标活动的成员。

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

属性值

所选 Activity数据项的路径。

属性

例外

尝试在设计模式下未设置此值时 ActivityBind 发生。

示例

本示例演示如何创建和使用 an ActivityBind以及设置 Name and Path.

此代码示例是引发活动 SDK 示例的一部分,来自ThrowActivity.cs文件。 有关详细信息,请参阅 使用 ThrowActivity 活动

注解

Caution

不能在运行时设置此属性。

适用于