Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RuleSetReference Class

RuleSetReference Class

Holds the name of a RuleSet in the RuleSetCollection on the workflow. This class cannot be inherited.

Namespace:  System.Workflow.Activities.Rules
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

<BrowsableAttribute(True)> _
Public NotInheritable Class RuleSetReference _
	Inherits DependencyObject
Dim instance As RuleSetReference

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.Name = "SimplePolicyWorkflow" 
AddHandler Completed, AddressOf Me.OnWorkflowCompleted
Me.CanModifyActivities = False


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2015 Microsoft