WorkflowQueuingService.DeleteWorkflowQueue Method (IComparable)


Deletes the specified WorkflowQueue.

Namespace:   System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

public void DeleteWorkflowQueue(
	IComparable queueName


Type: System.IComparable

The name of the WorkflowQueue to delete.

Exception Condition

queueName is a null reference (Nothing in Visual Basic).

The following code example demonstrates a method that writes a string to the console, creates an instance of WorkflowQueuingService by calling the ActivityExecutionContext.GetService<T> method. Finally, the code calls the DeleteWorkflowQueue method to delete the queue associated with a QueueName property on the current workflow.

This code example is part of the File Watcher Activity SDK Sample from the FileSystemEvent.cs file. For more information, see File System Watcher Activity.

private void DeleteQueue(ActivityExecutionContext context)
    WorkflowQueuingService qService = context.GetService<WorkflowQueuingService>();

.NET Framework
Available since 3.0
Return to top