WorkflowCompletedEventArgs 클래스

정의

주의

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

WorkflowCompleted 이벤트에 대한 데이터를 제공합니다.

public ref class WorkflowCompletedEventArgs : System::Workflow::Runtime::WorkflowEventArgs
public class WorkflowCompletedEventArgs : System.Workflow.Runtime.WorkflowEventArgs
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class WorkflowCompletedEventArgs : System.Workflow.Runtime.WorkflowEventArgs
type WorkflowCompletedEventArgs = class
    inherit WorkflowEventArgs
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowCompletedEventArgs = class
    inherit WorkflowEventArgs
Public Class WorkflowCompletedEventArgs
Inherits WorkflowEventArgs
상속
WorkflowCompletedEventArgs
특성

예제

다음 코드 예제에서는 WorkflowCompletedEventArgs를 매개 변수로 사용하는 이벤트 처리기 메서드를 보여 줍니다. 합니다 OnWorkflowCompleted 메서드를 호출한 경우는 WorkflowCompleted 이벤트가 발생 합니다. 이 코드에서는 OutputParameters 속성을 사용하여 Status 키와 연결된 값을 가져오고 콘솔에 씁니다.

이 코드 예제는 Program.cs 파일에 있는 Sequential Workflow with Parameters SDK 샘플의 일부입니다. 자세한 내용은 Workflow with Parameters 샘플합니다.

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

설명

참고

이 자료에서는 더 이상 사용되지 않는 형식과 네임스페이스에 대해 설명합니다. 자세한 내용은 Deprecated Types in Windows Workflow Foundation 4.5(Windows Workflow Foundation 4.5에서 사용되지 않는 형식)를 참조하세요.

워크플로가 완료되면 워크플로 런타임 엔진에서 WorkflowCompleted 이벤트를 발생시킵니다. 워크플로 런타임 엔진은 워크플로의 모든 출력 매개 변수를 WorkflowCompletedEventArgs에 포함하여 전달합니다. 여기에는 워크플로의 outref 매개 변수가 포함됩니다.

속성

OutputParameters
사용되지 않음.

워크플로에서 출력을 가져옵니다.

WorkflowDefinition
사용되지 않음.

워크플로 인스턴스를 완료할 때 워크플로 정의를 나타내는 Activity를 가져옵니다.

WorkflowInstance
사용되지 않음.

워크플로 이벤트와 연결된 워크플로 인스턴스를 가져옵니다.

(다음에서 상속됨 WorkflowEventArgs)

메서드

Equals(Object)
사용되지 않음.

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()
사용되지 않음.

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()
사용되지 않음.

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()
사용되지 않음.

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()
사용되지 않음.

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보