ManagementServer.UnregisterExecuteDiscovery Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cancels the callback for asynchronous discovery operations.
Overloads
UnregisterExecuteDiscovery(IAsyncResult) |
Unregisters the callback for discovery task. |
UnregisterExecuteDiscovery(Guid) |
Unregisters the callback for discovery task. |
UnregisterExecuteDiscovery(IAsyncResult)
Unregisters the callback for discovery task.
public:
void UnregisterExecuteDiscovery(IAsyncResult ^ asyncResult);
public void UnregisterExecuteDiscovery (IAsyncResult asyncResult);
member this.UnregisterExecuteDiscovery : IAsyncResult -> unit
Public Sub UnregisterExecuteDiscovery (asyncResult As IAsyncResult)
Parameters
- asyncResult
- IAsyncResult
IAsyncResult
Remarks
If you specified a callback method when starting a discovery task, the specified method is automatically called when the task is complete. After you cancel the callback for a task, its completion no longer causes the automatic execution of the specified callback method.
Applies to
UnregisterExecuteDiscovery(Guid)
Unregisters the callback for discovery task.
public:
void UnregisterExecuteDiscovery(Guid batchId);
public void UnregisterExecuteDiscovery (Guid batchId);
member this.UnregisterExecuteDiscovery : Guid -> unit
Public Sub UnregisterExecuteDiscovery (batchId As Guid)
Parameters
- batchId
- Guid
The GUID for the batch of tasks that you want to cancel callbacks for.
Remarks
If you specified a callback method when submitting a discovery task, the specified method is automatically called when the status of any task changes. After you cancel the callback for a batch of tasks, changes in task status no longer cause the automatic execution of the specified callback method.