PolicyActivity.RuleSetReference Właściwość

Definicja

Pobiera lub ustawia odwołanie do elementu RuleSet w pliku reguł.

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

Wartość właściwości

A RuleSetReference do elementu RuleSet w pliku reguł.

Przykłady

Poniższy przykład kodu pokazuje, jak utworzyć nowe wystąpienie PolicyActivity klasy i ustawić jego właściwości. Ten przykład kodu jest częścią przykładu RuleActionTrackingEventSample SDK z pliku SimplePolicyWorkflow.designer.cs. Aby uzyskać więcej informacji, zobacz RuleActionTrackingEvent Sample (Przykład RuleActionTrackingEvent).

// 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"))

Dotyczy

Zobacz też