|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
WorkflowRuntime, classe
Remarque : cette API est maintenant obsolète.
Espace de noms : System.Workflow.Runtime
Assembly : System.Workflow.Runtime (dans System.Workflow.Runtime.dll)
Le type WorkflowRuntime expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | WorkflowRuntime() | |
![]() | WorkflowRuntime(String) | |
![]() | WorkflowRuntime(WorkflowRuntimeSection) |
| Nom | Description | |
|---|---|---|
![]() | AddService | |
![]() | CreateWorkflow(Type) | |
![]() | CreateWorkflow(XmlReader) | |
![]() | CreateWorkflow(Type, Dictionary<String, Object>) | |
![]() | CreateWorkflow(Type, Dictionary<String, Object>, Guid) | |
![]() | CreateWorkflow(XmlReader, XmlReader, Dictionary<String, Object>) | |
![]() | CreateWorkflow(XmlReader, XmlReader, Dictionary<String, Object>, Guid) | |
![]() | Dispose | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetAllServices(Type) | |
![]() | GetAllServices<T>() | |
![]() | GetHashCode | |
![]() | GetLoadedWorkflows | |
![]() | GetService(Type) | |
![]() | GetService<T>() | |
![]() | GetType | |
![]() | GetWorkflow | |
![]() | MemberwiseClone | |
![]() | RemoveService | |
![]() | StartRuntime | |
![]() | StopRuntime | |
![]() | ToString |
| Nom | Description | |
|---|---|---|
![]() | ServicesExceptionNotHandled | |
![]() | Started | |
![]() | Stopped | |
![]() | WorkflowAborted | |
![]() | WorkflowCompleted | |
![]() | WorkflowCreated | |
![]() | WorkflowIdled | |
![]() | WorkflowLoaded | |
![]() | WorkflowPersisted | |
![]() | WorkflowResumed | |
![]() | WorkflowStarted | |
![]() | WorkflowSuspended | |
![]() | WorkflowTerminated | |
![]() | WorkflowUnloaded |
Remarque |
|---|
Ce matériel traite des types et des espaces de noms qui sont obsolètes. Pour plus d'informations, consultez Types déconseillés dans Windows Workflow Foundation 4.5. |
static void Main() { string connectionString = "Initial Catalog=SqlPersistenceService;Data Source=localhost;Integrated Security=SSPI;"; using (WorkflowRuntime workflowRuntime = new WorkflowRuntime()) { ExternalDataExchangeService dataService = new ExternalDataExchangeService(); workflowRuntime.AddService(dataService); dataService.AddService(expenseService); workflowRuntime.AddService(new SqlWorkflowPersistenceService(connectionString)); workflowRuntime.StartRuntime(); workflowRuntime.WorkflowCompleted += OnWorkflowCompleted; workflowRuntime.WorkflowTerminated += OnWorkflowTerminated; workflowRuntime.WorkflowIdled += OnWorkflowIdled; workflowRuntime.WorkflowAborted += OnWorkflowAborted; Type type = typeof(SampleWorkflow1); WorkflowInstance workflowInstance = workflowRuntime.CreateWorkflow(type); workflowInstance.Start(); waitHandle.WaitOne(); workflowRuntime.StopRuntime(); } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
