Partager via


RuleSetReference.RuleSetName Propriété

Définition

Obtient ou définit le nom du RuleSet que l'activité évalue.

public:
 property System::String ^ RuleSetName { System::String ^ get(); void set(System::String ^ value); };
public string RuleSetName { get; set; }
member this.RuleSetName : string with get, set
Public Property RuleSetName As String

Valeur de propriété

String

Nom du RuleSet que l'activité évalue.

Exemples

L'exemple de code suivant illustre la création d'une nouvelle instance de la classe RuleSetReference et lui affecte la valeur de la propriété PolicyActivity.RuleSetReference. Il fait partie de l'exemple du Kit de développement logiciel RuleActionTrackingEventSample (SDK) qui provient du fichier SimplePolicyWorkflow.designer.cs. Pour plus d’informations, consultez l’exemple 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

S’applique à