ActivityCondition 类

定义

注意

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

表示表达式的抽象类,该类的计算结果为 Boolean. 必须继承此类。

public ref class ActivityCondition abstract : System::Workflow::ComponentModel::DependencyObject
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ConditionTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ConditionValidator))]
public abstract class ActivityCondition : System.Workflow.ComponentModel.DependencyObject
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ConditionTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ConditionValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public abstract class ActivityCondition : System.Workflow.ComponentModel.DependencyObject
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ConditionTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ConditionValidator))>]
type ActivityCondition = class
    inherit DependencyObject
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.ConditionTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.ConditionValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityCondition = class
    inherit DependencyObject
Public MustInherit Class ActivityCondition
Inherits DependencyObject
继承
ActivityCondition
派生
属性

注解

注释

此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的 Deprecated Types。

条件是计算结果为值的 Boolean 表达式。

Windows Workflow Foundation 提供两种条件类型:CodeConditionRuleConditionReference

可以通过从此类派生并实现 Evaluate 该方法来创建自定义条件类型。

构造函数

名称 说明
ActivityCondition()
已过时.

在派生类中实现时,初始化类的新实例 ActivityCondition

属性

名称 说明
DesignMode
已过时.

获取一个值,该值指示此实例是处于设计模式还是运行时模式。

(继承自 DependencyObject)
ParentDependencyObject
已过时.

获取 DependencyObject 图中的父 DependencyObject

(继承自 DependencyObject)
Site
已过时.

获取或设置对 SiteDependencyObject 组件的引用。

(继承自 DependencyObject)
UserData
已过时.

获取将自定义数据与此类实例关联的 IDictionary

(继承自 DependencyObject)

方法

名称 说明
AddHandler(DependencyProperty, Object)
已过时.

DependencyObject的事件添加处理程序。

(继承自 DependencyObject)
Dispose()
已过时.

释放 DependencyObject使用的所有资源。

(继承自 DependencyObject)
Dispose(Boolean)
已过时.

释放非托管资源,并选择性地释放 DependencyObject使用的托管资源。

(继承自 DependencyObject)
Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
Evaluate(Activity, IServiceProvider)
已过时.

计算基础条件。

GetBinding(DependencyProperty)
已过时.

提供对与特定 ActivityBind关联的 DependencyProperty 的访问权限。

(继承自 DependencyObject)
GetBoundValue(ActivityBind, Type)
已过时.

检索作为 Object主题的 ActivityBind

(继承自 DependencyObject)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetInvocationList<T>(DependencyProperty)
已过时.

获取一个数组,该数组包含指定 DependencyProperty的委托。

(继承自 DependencyObject)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
GetValue(DependencyProperty)
已过时.

提供对指定 DependencyProperty值的访问权限。

(继承自 DependencyObject)
GetValueBase(DependencyProperty)
已过时.

提供对 DependencyProperty 绑定对象的访问并绕过 GetValue(DependencyProperty) 替代。

(继承自 DependencyObject)
InitializeProperties()
已过时.

在派生类中重写时,对依赖属性执行初始化。

(继承自 DependencyObject)
IsBindingSet(DependencyProperty)
已过时.

指示 DependencyProperty 的值是否设置为绑定。 请参阅 SetBinding(DependencyProperty, ActivityBind)

(继承自 DependencyObject)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
MetaEquals(DependencyObject)
已过时.

确定此 metapropertiesDependencyObject 是否等于参数化 metapropertiesDependencyObject

(继承自 DependencyObject)
RemoveHandler(DependencyProperty, Object)
已过时.

从关联的 EventHandler中删除 DependencyProperty

(继承自 DependencyObject)
RemoveProperty(DependencyProperty)
已过时.

DependencyProperty中删除 DependencyObject

(继承自 DependencyObject)
SetBinding(DependencyProperty, ActivityBind)
已过时.

设置指定 ActivityBindDependencyProperty

(继承自 DependencyObject)
SetBoundValue(ActivityBind, Object)
已过时.

设置目标 ActivityBind的值。

(继承自 DependencyObject)
SetReadOnlyPropertyValue(DependencyProperty, Object)
已过时.

设置只读 DependencyProperty的值。

(继承自 DependencyObject)
SetValue(DependencyProperty, Object)
已过时.

DependencyProperty 的值设置为对象。

(继承自 DependencyObject)
SetValueBase(DependencyProperty, Object)
已过时.

DependencyProperty 的值设置为指定的 Object,绕过 SetValue(DependencyProperty, Object)

(继承自 DependencyObject)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
IComponent.Disposed
已过时.

表示处理组件的 Disposed 事件的方法。

(继承自 DependencyObject)

适用于