-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
WorkflowCompletedEventArgs.xml
113 lines (97 loc) · 8.42 KB
/
WorkflowCompletedEventArgs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<Type Name="WorkflowCompletedEventArgs" FullName="System.Workflow.Runtime.WorkflowCompletedEventArgs">
<TypeSignature Language="C#" Value="public class WorkflowCompletedEventArgs : System.Workflow.Runtime.WorkflowEventArgs" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit WorkflowCompletedEventArgs extends System.Workflow.Runtime.WorkflowEventArgs" />
<TypeSignature Language="DocId" Value="T:System.Workflow.Runtime.WorkflowCompletedEventArgs" />
<TypeSignature Language="VB.NET" Value="Public Class WorkflowCompletedEventArgs
Inherits WorkflowEventArgs" />
<TypeSignature Language="F#" Value="type WorkflowCompletedEventArgs = class
 inherit WorkflowEventArgs" />
<TypeSignature Language="C++ CLI" Value="public ref class WorkflowCompletedEventArgs : System::Workflow::Runtime::WorkflowEventArgs" />
<AssemblyInfo>
<AssemblyName>System.Workflow.Runtime</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Workflow.Runtime.WorkflowEventArgs</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides data for the <see cref="E:System.Workflow.Runtime.WorkflowRuntime.WorkflowCompleted" /> event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
> [!NOTE]
> [!INCLUDE[DeprecatedContent](~/includes/deprecatedcontent-md.md)]
When the workflow completes, the workflow runtime engine raises the <xref:System.Workflow.Runtime.WorkflowRuntime.WorkflowCompleted> event. The workflow runtime engine passes all of the output parameters of the workflow in a <xref:System.Workflow.Runtime.WorkflowCompletedEventArgs>. These include the `out` and `ref` parameters of the workflow.
## Examples
The following code example demonstrates an event handler method that takes <xref:System.Workflow.Runtime.WorkflowCompletedEventArgs> as a parameter. The `OnWorkflowCompleted` method is called when the <xref:System.Workflow.Runtime.WorkflowRuntime.WorkflowCompleted> event is raised. The code uses the <xref:System.Workflow.Runtime.WorkflowCompletedEventArgs.OutputParameters%2A> property to obtain the value associated with the `Status` key and writes it to the console.
This code example is part of the Sequential Workflow with Parameters SDK Sample from the Program.cs file. For more information, see [Workflow with Parameters Sample](https://learn.microsoft.com/previous-versions/dotnet/netframework-3.5/ms741685(v=vs.90)).
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wf_samples/cs/snippets19.cs" id="Snippet192":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CFX/wf_samples/vb/snippets19.vb" id="Snippet192":::
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.5/ms741685(v=vs.90)">Workflow with Parameters Sample</related>
</Docs>
<Members>
<Member MemberName="OutputParameters">
<MemberSignature Language="C#" Value="public System.Collections.Generic.Dictionary<string,object> OutputParameters { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.Dictionary`2<string, object> OutputParameters" />
<MemberSignature Language="DocId" Value="P:System.Workflow.Runtime.WorkflowCompletedEventArgs.OutputParameters" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property OutputParameters As Dictionary(Of String, Object)" />
<MemberSignature Language="F#" Value="member this.OutputParameters : System.Collections.Generic.Dictionary<string, obj>" Usage="System.Workflow.Runtime.WorkflowCompletedEventArgs.OutputParameters" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Collections::Generic::Dictionary<System::String ^, System::Object ^> ^ OutputParameters { System::Collections::Generic::Dictionary<System::String ^, System::Object ^> ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Workflow.Runtime</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.Dictionary<System.String,System.Object></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the output from the workflow.</summary>
<value>A <see cref="T:System.Collections.Generic.Dictionary`2" /> of values keyed by parameter name that contains the output parameters of the workflow.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Workflow.Runtime.WorkflowCompletedEventArgs.OutputParameters%2A> contains the `out` and `ref` parameters of the workflow.
## Examples
The following code example demonstrates how to obtain a value from a key stored in the <xref:System.Workflow.Runtime.WorkflowCompletedEventArgs.OutputParameters%2A> property. The `OnWorkflowCompleted` method has a parameter that takes a <xref:System.Workflow.Runtime.WorkflowCompletedEventArgs>. This method is called when the <xref:System.Workflow.Runtime.WorkflowRuntime.WorkflowCompleted> event is raised. The code uses the <xref:System.Workflow.Runtime.WorkflowCompletedEventArgs.OutputParameters%2A> property to obtain the value associated with the `Status` key and writes it to the console.
This code example is part of the Sequential Workflow with Parameters SDK Sample from the Program.cs file. For more information, see [Workflow with Parameters Sample](https://learn.microsoft.com/previous-versions/dotnet/netframework-3.5/ms741685(v=vs.90)).
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wf_samples/cs/snippets19.cs" id="Snippet192":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CFX/wf_samples/vb/snippets19.vb" id="Snippet192":::
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.5/ms741685(v=vs.90)">Workflow with Parameters Sample</related>
</Docs>
</Member>
<Member MemberName="WorkflowDefinition">
<MemberSignature Language="C#" Value="public System.Workflow.ComponentModel.Activity WorkflowDefinition { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Workflow.ComponentModel.Activity WorkflowDefinition" />
<MemberSignature Language="DocId" Value="P:System.Workflow.Runtime.WorkflowCompletedEventArgs.WorkflowDefinition" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property WorkflowDefinition As Activity" />
<MemberSignature Language="F#" Value="member this.WorkflowDefinition : System.Workflow.ComponentModel.Activity" Usage="System.Workflow.Runtime.WorkflowCompletedEventArgs.WorkflowDefinition" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Workflow::ComponentModel::Activity ^ WorkflowDefinition { System::Workflow::ComponentModel::Activity ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Workflow.Runtime</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Workflow.ComponentModel.Activity</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets an <see cref="T:System.Workflow.ComponentModel.Activity" /> that represents the workflow definition on completion of the workflow instance.</summary>
<value>An <see cref="T:System.Workflow.ComponentModel.Activity" /> that represents the workflow definition on completion of the workflow instance.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>