다음을 통해 공유


WorkflowInstanceManager.TerminateInstance 메서드

지정된 워크플로 인스턴스를 종료합니다.

네임스페이스:  Microsoft.Workflow.Client
어셈블리:  Microsoft.Workflow.Client(Microsoft.Workflow.Client.dll)

구문

‘선언
Public Function TerminateInstance ( _
    workflowName As String, _
    instanceName As String, _
    reason As String _
) As WorkflowInstanceResult
‘사용 방법
Dim instance As WorkflowInstanceManager 
Dim workflowName As String 
Dim instanceName As String 
Dim reason As String 
Dim returnValue As WorkflowInstanceResult 

returnValue = instance.TerminateInstance(workflowName, _
    instanceName, reason)
public WorkflowInstanceResult TerminateInstance(
    string workflowName,
    string instanceName,
    string reason
)
public:
WorkflowInstanceResult^ TerminateInstance(
    String^ workflowName, 
    String^ instanceName, 
    String^ reason
)
member TerminateInstance : 
        workflowName:string * 
        instanceName:string * 
        reason:string -> WorkflowInstanceResult
public function TerminateInstance(
    workflowName : String, 
    instanceName : String, 
    reason : String
) : WorkflowInstanceResult

매개 변수

  • workflowName
    유형: System.String
    인스턴스가 속한 워크플로의 이름입니다.
  • instanceName
    유형: System.String
    종료될 워크플로 인스턴스의 이름입니다.
  • reason
    유형: System.String
    인스턴스를 종료하는 이유입니다.

반환 값

유형: Microsoft.Activities.WorkflowInstanceResult
이 작업의 워크플로 인스턴스 결과입니다.

참고 항목

참조

WorkflowInstanceManager 클래스

Microsoft.Workflow.Client 네임스페이스