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) |