RuleSetReference 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
保存工作流上 RuleSet 中的 RuleSetCollection 的名称。 此类不能被继承。
public ref class RuleSetReference sealed : System::Workflow::ComponentModel::DependencyObject
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.Rules.Design.RuleSetReferenceTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.Rules.RuleSetReferenceValidator))]
public sealed class RuleSetReference : System.Workflow.ComponentModel.DependencyObject
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.Rules.Design.RuleSetReferenceTypeConverter))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.Rules.RuleSetReferenceValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class RuleSetReference : System.Workflow.ComponentModel.DependencyObject
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.Rules.Design.RuleSetReferenceTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.Rules.RuleSetReferenceValidator))>]
type RuleSetReference = class
inherit DependencyObject
[<System.ComponentModel.Browsable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.Rules.Design.RuleSetReferenceTypeConverter))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.Rules.RuleSetReferenceValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type RuleSetReference = class
inherit DependencyObject
Public NotInheritable Class RuleSetReference
Inherits DependencyObject
- 继承
- 属性
示例
下面的代码示例演示如何创建 RuleSetReference 类的新实例并将其设置为 PolicyActivity.RuleSetReference 属性的值。 此代码示例摘自 SimplePolicyWorkflow.designer.cs 文件中的“RuleActionTrackingEventSample”SDK 示例。 有关详细信息,请参阅 RuleActionTrackingEvent 示例。
this.CanModifyActivities = true;
System.Workflow.Activities.Rules.RuleSetReference rulesetreference1 = new System.Workflow.Activities.Rules.RuleSetReference();
this.simpleDiscountPolicy = new System.Workflow.Activities.PolicyActivity();
//
// simpleDiscountPolicy
//
this.simpleDiscountPolicy.Name = "simpleDiscountPolicy";
rulesetreference1.RuleSetName = "DiscountRuleSet";
this.simpleDiscountPolicy.RuleSetReference = rulesetreference1;
//
// SimplePolicyWorkflow
//
this.Activities.Add(this.simpleDiscountPolicy);
this.Name = "SimplePolicyWorkflow";
this.Completed += new System.EventHandler(this.WorkflowCompleted);
this.CanModifyActivities = false;
Me.CanModifyActivities = True
Dim rulesetreference1 As System.Workflow.Activities.Rules.RuleSetReference = New System.Workflow.Activities.Rules.RuleSetReference
Me.simpleDiscountPolicy = New System.Workflow.Activities.PolicyActivity
'
' simpleDiscountPolicy
'
Me.simpleDiscountPolicy.Name = "simpleDiscountPolicy"
rulesetreference1.RuleSetName = "DiscountRuleSet"
Me.simpleDiscountPolicy.RuleSetReference = rulesetreference1
'
' SimplePolicyWorkflow
'
Me.Activities.Add(Me.simpleDiscountPolicy)
Me.Name = "SimplePolicyWorkflow"
AddHandler Completed, AddressOf Me.OnWorkflowCompleted
Me.CanModifyActivities = False
构造函数
RuleSetReference() |
初始化 RuleSetReference 类的新实例。 |
RuleSetReference(String) |
使用 RuleSetReference 的名称初始化 RuleSet 类的一个新实例。 |
属性
DesignMode |
获取一个值,该值指示此实例是处于设计模式还是运行时模式。 (继承自 DependencyObject) |
ParentDependencyObject |
获取 DependencyObject 图中的父 DependencyObject。 (继承自 DependencyObject) |
RuleSetName |
获取或设置活动将计算的 RuleSet 的名称。 |
Site |
获取或设置对 Site 的 DependencyObject 组件的引用。 (继承自 DependencyObject) |
UserData |
获取一个 IDictionary,它将自定义数据与此类实例关联。 (继承自 DependencyObject) |
方法
显式接口实现
IComponent.Disposed |
表示处理组件的“Disposed”事件的方法。 (继承自 DependencyObject) |