Share via


PolicyActivity.RuleSetReference Propriedade

Definição

Obtém ou define uma referência a um RuleSet no arquivo .rules.

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

Valor da propriedade

Um RuleSetReference para um RuleSet no arquivo .rules.

Exemplos

O exemplo de código a seguir mostra como criar uma nova instância da PolicyActivity classe e definir suas propriedades. Este exemplo de código faz parte do exemplo de SDK RuleActionTrackingEventSample do arquivo SimplePolicyWorkflow.designer.cs. Para obter mais informações, consulte Exemplo de 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"))

Aplica-se a

Confira também