ActivityBind 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
将活动的属性绑定到属性、字段、索引器、方法、事件或其他活动的属性。 此类不能被继承。
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
- 继承
- 属性
注解
注释
此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的
ActivityBind 允许数据从一个活动流向工作流中的另一个活动。 ActivityBind 是一种声明性方式,用于使用代码完成其他操作,因此是大多数完全用 XAML 标记编写的工作流的关键元素。
ActivityBind 表示具有成员 Activity 作为目标的绑定表达式。 目标活动成员可以是属性、事件或字段。 Activity属性或方法可用于ActivityBind绑定到另一Activity个成员。
例如,如果 activity1 的 property1 设置为某些值,如果 activity2 的 property1 ActivityBind 设置为 Name=“activity1”和 Path=“property1”,则 activity2.property1 在运行时从 activity1.property1 获取其值。
构造函数
| 名称 | 说明 |
|---|---|
| ActivityBind() |
已过时.
初始化 ActivityBind 类的新实例。 |
| ActivityBind(String, String) |
已过时.
使用和 |
| ActivityBind(String) |
已过时.
使用 |
属性
| 名称 | 说明 |
|---|---|
| Name |
已过时.
获取或设置 Activity 指向 ActivityBind 的名称。 |
| Path |
已过时.
获取或设置目标活动的成员的路径。 该值可以使用点表示法来指示嵌套值的路径。 例如,“A.B.C”的路径指示 ActivityBind 是名为“C”的字段或属性,该字段或属性“B”又是字段或属性“A”的成员,而该字段或属性“A”是目标活动的成员。 |
| UserData |
已过时.
获取与此 IDictionary 实例相关的用户数据。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(Object) |
已过时.
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
已过时.
用作默认哈希函数。 (继承自 Object) |
| GetRuntimeValue(Activity, Type) |
已过时.
获取表示 Object 此 ActivityBind运行时值。 |
| GetRuntimeValue(Activity) |
已过时.
获取表示 Object 此 ActivityBind运行时值。 |
| GetType() |
已过时.
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
已过时.
创建当前 Object的浅表副本。 (继承自 Object) |
| ProvideValue(IServiceProvider) |
已过时.
返回此类的当前实例。 |
| SetRuntimeValue(Activity, Object) |
已过时.
设置运行时值。 |
| ToString() |
已过时.
|