Share via


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

적용 대상

추가 정보