Aracılığıyla paylaş


PolicyActivity.RuleSetReference Özellik

Tanım

.rules dosyasında bir başvuru RuleSet alır veya ayarlar.

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

Özellik Değeri

RuleSetReference.rules dosyasında a'yaRuleSet.

Örnekler

Aşağıdaki kod örneği, sınıfının yeni bir örneğinin PolicyActivity nasıl oluşturulacağını ve özelliklerinin nasıl ayarlandığını gösterir. Bu kod örneği, SimplePolicyWorkflow.designer.cs dosyasındaki RuleActionTrackingEventSample SDK Örneğinin bir parçasıdır. Daha fazla bilgi için bkz. RuleActionTrackingEvent Örneği.

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

Şunlara uygulanır

Ayrıca bkz.