WorkflowQueuingService.DeleteWorkflowQueue(IComparable) 메서드

정의

지정된 WorkflowQueue를 삭제합니다.

public:
 void DeleteWorkflowQueue(IComparable ^ queueName);
public void DeleteWorkflowQueue (IComparable queueName);
member this.DeleteWorkflowQueue : IComparable -> unit
Public Sub DeleteWorkflowQueue (queueName As IComparable)

매개 변수

queueName
IComparable

삭제할 WorkflowQueue의 이름입니다.

예외

queueName이 null 참조(Visual Basic의 경우 Nothing)인 경우

예제

다음 코드 예제에서는 문자열을 콘솔에 쓰고, WorkflowQueuingService 메서드를 호출하여 ActivityExecutionContext.GetService 인스턴스를 만드는 메서드를 보여 줍니다. 마지막으로 이 코드에서는 DeleteWorkflowQueue 메서드를 호출하여 현재 워크플로의 QueueName 속성과 연결된 큐를 삭제합니다.

이 코드 예제는 FileSystemEvent.cs 파일에 있는 File Watcher Activity SDK 샘플의 일부입니다. 자세한 내용은 파일 시스템 감시자 작업합니다.

private void DeleteQueue(ActivityExecutionContext context)
{
    Console.WriteLine("DeleteQueue");
    WorkflowQueuingService qService = context.GetService<WorkflowQueuingService>();
    qService.DeleteWorkflowQueue(this.QueueName);
}
Private Sub DeleteQueue(ByVal context As ActivityExecutionContext)
    Console.WriteLine("DeleteQueue")
    Dim qService As WorkflowQueuingService = context.GetService(Of WorkflowQueuingService)()
    qService.DeleteWorkflowQueue(Me.QueueName)
End Sub

적용 대상

추가 정보