Share via


SmsBackgroundWorker.CancelAsync Method

Requests cancelation of a pending asynchronous operation.

Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim instance As SmsBackgroundWorker

instance.CancelAsync

Syntax

'Declaration
<DebuggerStepThroughAttribute> _
Public Sub CancelAsync
[DebuggerStepThroughAttribute] 
public void CancelAsync ()
[DebuggerStepThroughAttribute] 
public:
void CancelAsync ()
/** @attribute DebuggerStepThroughAttribute() */ 
public void CancelAsync ()
DebuggerStepThroughAttribute 
public function CancelAsync ()

Remarks

The asynchronous operation might complete before the request for cancelation is accepted. The application should handle this condition by examining the result in QueryProcessorCompleted.

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

Reference

SmsBackgroundWorker Class
SmsBackgroundWorker Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace
CancelAsync
QueryProcessorCompleted