Finishes an asynchronous device discovery operation. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementServer
Dim asyncResult As IAsyncResult
Dim returnValue As DiscoveryTaskResult

returnValue = instance.EndExecuteDeviceDiscovery(asyncResult)

Syntax

Visual Basic
Public Function EndExecuteDeviceDiscovery ( _
		asyncResult As IAsyncResult _
) As DiscoveryTaskResult
C#
public DiscoveryTaskResult EndExecuteDeviceDiscovery (
		IAsyncResult asyncResult
)
C++
public:
DiscoveryTaskResult^ EndExecuteDeviceDiscovery (
		IAsyncResult^ asyncResult
)
J#
public DiscoveryTaskResult EndExecuteDeviceDiscovery (
		IAsyncResult asyncResult
)
JScript
public function EndExecuteDeviceDiscovery (
		asyncResult : IAsyncResult
) : DiscoveryTaskResult

Parameters

asyncResult

An IAsyncResult instance that stores state information and any user-defined data for this asynchronous operation.

Return Value

A DiscoveryTaskResult containing the results of the discovery operation.

Remarks

EndExecuteDeviceDiscovery is a blocking method that completes the asynchronous discovery request started in the BeginExecuteDeviceDiscovery method.


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 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also