WorkflowCompletedEventArgs.OutputParameters Propriedade
Definição
Obtém a saída do fluxo de trabalho.Gets the output from the workflow.
public:
property System::Collections::Generic::Dictionary<System::String ^, System::Object ^> ^ OutputParameters { System::Collections::Generic::Dictionary<System::String ^, System::Object ^> ^ get(); };
public System.Collections.Generic.Dictionary<string,object> OutputParameters { get; }
member this.OutputParameters : System.Collections.Generic.Dictionary<string, obj>
Public ReadOnly Property OutputParameters As Dictionary(Of String, Object)
Valor da propriedade
Um Dictionary<TKey,TValue> dos valores com chave pelo nome do parâmetro que contém os parâmetros de saída do fluxo de trabalho.A Dictionary<TKey,TValue> of values keyed by parameter name that contains the output parameters of the workflow.
Exemplos
O exemplo de código a seguir demonstra como obter um valor de uma chave armazenada na OutputParameters propriedade.The following code example demonstrates how to obtain a value from a key stored in the OutputParameters property. O OnWorkflowCompleted método tem um parâmetro que usa um WorkflowCompletedEventArgs .The OnWorkflowCompleted method has a parameter that takes a WorkflowCompletedEventArgs. Esse método é chamado quando o WorkflowCompleted evento é gerado.This method is called when the WorkflowCompleted event is raised. O código usa a OutputParameters propriedade para obter o valor associado à Status chave e grava-o no console.The code uses the OutputParameters property to obtain the value associated with the Status key and writes it to the console.
Este exemplo de código faz parte do fluxo de trabalho sequencial com o exemplo de SDK de parâmetros do arquivo Program. cs.This code example is part of the Sequential Workflow with Parameters SDK Sample from the Program.cs file. Para obter mais informações, consulte exemplo de fluxo de trabalho com parâmetros.For more information, see Workflow with Parameters Sample.
static void OnWorkflowCompleted(object sender, WorkflowCompletedEventArgs e)
{
//The order status is stored in the "status" "out" parameter
string orderStatus = e.OutputParameters["Status"].ToString();
Console.WriteLine("Order was " + orderStatus);
waitHandle.Set();
}
Shared Sub OnWorkflowCompleted(ByVal sender As Object, ByVal e As WorkflowCompletedEventArgs)
'The order status is stored in the "status" "out" parameter
Dim orderStatus As String = e.OutputParameters("Status").ToString()
Console.WriteLine("Order was " + orderStatus)
waitHandle.Set()
End Sub
Comentários
OutputParameters contém os out ref parâmetros e do fluxo de trabalho.OutputParameters contains the out and ref parameters of the workflow.