RuleSetReference Class
Holds the name of a RuleSet in the RuleSetCollection on the workflow. This class cannot be inherited.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
The following code example shows how to create a new instance of the RuleSetReference class and set it to the value of the PolicyActivity.RuleSetReference property. This code example is part of the RuleActionTrackingEventSample SDK Sample from the SimplePolicyWorkflow.designer.cs file. For more information, see RuleActionTrackingEvent Sample.
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
System.Workflow.ComponentModel.DependencyObject
System.Workflow.Activities.Rules.RuleSetReference
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.