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 文件中 RuleSetReferenceRuleSet

示例

下面的代码示例演示如何创建 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"))

适用于

另请参阅