Export (0) Print
Expand All

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)

[TypeConverterAttribute(typeof(RuleSetReferenceTypeConverter))] 
public sealed class RuleSetReference : DependencyObject
/** @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

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

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft