RuleWriteAttribute 构造函数
定义
重载
| RuleWriteAttribute(String) |
初始化 RuleWriteAttribute 类的新实例。Initializes a new instance of the RuleWriteAttribute class. |
| RuleWriteAttribute(String, RuleAttributeTarget) |
初始化 RuleWriteAttribute 类的新实例。Initializes a new instance of the RuleWriteAttribute class. |
RuleWriteAttribute(String)
初始化 RuleWriteAttribute 类的新实例。Initializes a new instance of the RuleWriteAttribute class.
public:
RuleWriteAttribute(System::String ^ path);
public RuleWriteAttribute (string path);
new System.Workflow.Activities.Rules.RuleWriteAttribute : string -> System.Workflow.Activities.Rules.RuleWriteAttribute
Public Sub New (path As String)
参数
- path
- String
与应用此属性 (attribute) 的方法或属性 (property) 位于同一类上的字段或属性 (property)。The field or property that is on the same class as the method or property that this attribute is applied to.
注解
若要指定方法或属性写入到其中一个参数上的字段或属性,必须使用 RuleWriteAttribute(路径、RuleAttributeTarget.Parameter)。To specify that the method or property writes to a field or property on one of the parameters, you must use RuleWriteAttribute (path, RuleAttributeTarget.Parameter).
适用于
RuleWriteAttribute(String, RuleAttributeTarget)
初始化 RuleWriteAttribute 类的新实例。Initializes a new instance of the RuleWriteAttribute class.
public:
RuleWriteAttribute(System::String ^ path, System::Workflow::Activities::Rules::RuleAttributeTarget target);
public RuleWriteAttribute (string path, System.Workflow.Activities.Rules.RuleAttributeTarget target);
new System.Workflow.Activities.Rules.RuleWriteAttribute : string * System.Workflow.Activities.Rules.RuleAttributeTarget -> System.Workflow.Activities.Rules.RuleWriteAttribute
Public Sub New (path As String, target As RuleAttributeTarget)
参数
- path
- String
与应用此属性 (attribute) 的方法或属性 (property) 位于同一类上的字段或属性 (property)。The field or property that is on the same class as the method or property that this attribute is applied to.
- target
- RuleAttributeTarget
确定如何使用路径查找目标的 RuleAttributeTarget 枚举值。RuleAttributeTarget enumeration value that determines how to use path to find target.
注解
若要指定方法或属性写入到其中一个参数上的字段或属性,必须使用 RuleWriteAttribute(路径、RuleAttributeTarget.Parameter)。To specify that the method or property writes to a field or property on one of the parameters, you must use RuleWriteAttribute (path, RuleAttributeTarget.Parameter).