RuleSetReference 类

定义

注意

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
属性

示例

下面的代码示例演示如何创建 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

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

(继承自 DependencyObject)
UserData

获取一个 IDictionary,它将自定义数据与此类实例关联。

(继承自 DependencyObject)

方法

AddHandler(DependencyProperty, Object)

DependencyObject 的事件添加处理程序。

(继承自 DependencyObject)
Dispose()

释放由 DependencyObject 占用的所有资源。

(继承自 DependencyObject)
Dispose(Boolean)

释放非托管资源,还可以释放由 DependencyObject 占用的托管资源。

(继承自 DependencyObject)
Equals(Object)

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

(继承自 Object)
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)

为指定的 ActivityBind 设置 DependencyProperty

(继承自 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)

适用于