Share via


PolicyActivity.RuleSetReference Eigenschaft

Definition

Ruft einen Verweis auf RuleSet in der Datei .rules ab oder legt diesen fest.

public:
 property System::Workflow::Activities::Rules::RuleSetReference ^ RuleSetReference { System::Workflow::Activities::Rules::RuleSetReference ^ get(); void set(System::Workflow::Activities::Rules::RuleSetReference ^ value); };
public System.Workflow.Activities.Rules.RuleSetReference RuleSetReference { get; set; }
member this.RuleSetReference : System.Workflow.Activities.Rules.RuleSetReference with get, set
Public Property RuleSetReference As RuleSetReference

Eigenschaftswert

Ein RuleSetReference auf einen RuleSet in der Datei .rules.

Beispiele

Im folgenden Codebeispiel wird das Erstellen einer neuen Instanz der PolicyActivity-Klasse und das Festlegen ihrer Eigenschaften dargestellt. Dieses Codebeispiel stammt aus dem RuleActionTrackingEventSample SDK-Beispiel in der Datei SimplePolicyWorkflow.designer.cs. Weitere Informationen finden Sie unter RuleActionTrackingEvent-Beispiel.

// A workflow is always run asychronously; the main thread waits on this event so the program
// doesn't exit before the workflow completes
workflowRuntime.AddService(new SqlWorkflowPersistenceService("Initial Catalog=SqlPersistenceService;Data Source=localhost;Integrated Security=SSPI;"));
' A workflow is always run asychronously the main thread waits on Me event so the program
' doesn't exit before the workflow completes
WorkflowRuntime.AddService(New SqlWorkflowPersistenceService("Initial Catalog=SqlPersistenceServiceData Source=localhostIntegrated Security=SSPI"))

Gilt für:

Weitere Informationen