Share via


PolicyActivity.RuleSetReference Propriété

Définition

Obtient ou définit une référence à une classe RuleSet dans le fichier .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

Valeur de propriété

Une classe RuleSetReference à RuleSet dans le fichier .rules.

Exemples

L'exemple suivant illustre la création d'une instance de la classe PolicyActivity et définit ses propriétés. Il fait partie de l'exemple du Kit de développement logiciel RuleActionTrackingEventSample (SDK) qui provient du fichier SimplePolicyWorkflow.designer.cs. Pour plus d’informations, consultez Exemple 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"))

S’applique à

Voir aussi