RuleSetReference Class
.NET Framework 3.0
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)
Assembly: System.Workflow.Activities (in system.workflow.activities.dll)
'Declaration <TypeConverterAttribute(GetType(RuleSetReferenceTypeConverter))> _ Public NotInheritable Class RuleSetReference Inherits DependencyObject 'Usage Dim instance As RuleSetReference
/** @attribute TypeConverterAttribute(System.Workflow.Activities.Rules.Design.RuleSetReferenceTypeConverter) */ public final class RuleSetReference extends DependencyObject
TypeConverterAttribute(System.Workflow.Activities.Rules.Design.RuleSetReferenceTypeConverter) public final class RuleSetReference extends DependencyObject
Not applicable.
The following code example demonstrates 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.
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;
System.Object
System.Workflow.ComponentModel.DependencyObject
System.Workflow.Activities.Rules.RuleSetReference
System.Workflow.ComponentModel.DependencyObject
System.Workflow.Activities.Rules.RuleSetReference
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: