共用方式為


PolicyActivity.RuleSetReference 屬性

定義

取得或設定 .rules 檔案中對 RuleSet 的參考。

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

屬性值

RuleSetReference 至 .rules 檔案中的 RuleSet

範例

下列程式碼範例示範如何建立 PolicyActivity 類別的新執行個體,並設定其屬性。 這個程式碼範例是 SimplePolicyWorkflow.designer.cs 檔案中<RuleActionTrackingEventSample SDK>範例的一部分。 如需詳細資訊,請參閱 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"))

適用於

另請參閱