Cancels an asynchronous query. Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim instance As QueryProcessorBase
Dim taskId As Object

instance.CancelAsync(taskId)

Syntax

Visual Basic
Public Sub CancelAsync ( _
		taskId As Object _
)
C#
public void CancelAsync (
		Object taskId
)
C++
public:
void CancelAsync (
		Object^ taskId
)
J#
public void CancelAsync (
		Object taskId
)
JScript
public function CancelAsync (
		taskId : Object
)

Parameters

taskId

[in] System.Object instance that represents the identifier of the task for which to cancel the query.

Exceptions

Exception type Condition
ArgumentNullException

The taskId parameter cannot be null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also