RuleUpdateAction 构造函数

定义

初始化 RuleUpdateAction 类的新实例。

重载

RuleUpdateAction()

初始化 RuleUpdateAction 类的新实例。

RuleUpdateAction(String)

初始化 RuleUpdateAction 类的新实例。

RuleUpdateAction()

初始化 RuleUpdateAction 类的新实例。

public:
 RuleUpdateAction();
public RuleUpdateAction ();
Public Sub New ()

适用于

RuleUpdateAction(String)

初始化 RuleUpdateAction 类的新实例。

public:
 RuleUpdateAction(System::String ^ path);
public RuleUpdateAction (string path);
new System.Workflow.Activities.Rules.RuleUpdateAction : string -> System.Workflow.Activities.Rules.RuleUpdateAction
Public Sub New (path As String)

参数

path
String

表示更改的字段或属性的名称的字符串。 “/”字符用作分隔符。

注解

若要指示属性 this.SomeProperty 已修改,path 参数应为 this/SomeProperty。 可以根据需要明确地指定更改的值(例如,如果只修改 this.SomeProperty/SomeOtherProperty,则可以指定 this/SomeProperty/SomeOtherProperty)。 在后一种情况下,不会重新计算使用 this.SomeProperty/AnyOtherProperty 的其他规则。

若要指定修改所有字段和属性,请将 " * " 追加到路径的末尾。 例如,this/SomeProperty/* 指示修改 this.SomeProperty 上的所有字段和属性。 因此,会重新计算使用 this.SomeProperty 上的任何字段或属性的所有规则。

备注

如果在将 ChainingBehavior 设置为 None 的情况下运行该规则集,则会忽略此操作。

适用于