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

プロパティ値

.rules ファイルの RuleSetReference への 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"))

適用対象

こちらもご覧ください