Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)
Usage
Visual Basic |
---|
Dim instance As ManagementServer Dim discoveryConfigurations As IList(Of DeviceDiscoveryConfiguration) Dim callback As AsyncCallback Dim state As Object Dim returnValue As IAsyncResult returnValue = instance.BeginExecuteDeviceDiscovery(discoveryConfigurations, callback, state) |
Syntax
Visual Basic |
---|
Public Function BeginExecuteDeviceDiscovery ( _ discoveryConfigurations As IList(Of DeviceDiscoveryConfiguration), _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult |
C# |
---|
public IAsyncResult BeginExecuteDeviceDiscovery ( IList<DeviceDiscoveryConfiguration> discoveryConfigurations, AsyncCallback callback, Object state ) |
C++ |
---|
public: IAsyncResult^ BeginExecuteDeviceDiscovery ( IList<DeviceDiscoveryConfiguration^>^ discoveryConfigurations, AsyncCallback^ callback, Object^ state ) |
J# |
---|
public IAsyncResult BeginExecuteDeviceDiscovery ( IList<DeviceDiscoveryConfiguration> discoveryConfigurations, AsyncCallback callback, Object state ) |
JScript |
---|
public function BeginExecuteDeviceDiscovery ( discoveryConfigurations : IList<DeviceDiscoveryConfiguration>, callback : AsyncCallback, state : Object ) : IAsyncResult |
Parameters
- discoveryConfigurations
-
Describes the devices to discover.
- callback
-
An AsyncCallback delegate that references a user-defined method to call when the discovery operation is complete.
- state
-
A user-defined object that you can use to pass information about the state of the asynchronous operation to the method specified by the callback parameter.
Return Value
An IAsyncResult instance that you can use to check the status of the asynchronous operation.Remarks
After you call this method to asynchronously discover network devices, you must call the EndExecuteDeviceDiscovery method to complete the operation. If the discovery process has not yet finished, the method blocks until discovery is complete.
You can determine whether the discovery process has completed by using the IsCompleted property of the IAsyncResult instance returned by this method.
If you specify a user-defined callback method (in the callback parameter), this method is automatically called when discovery is complete. The specified callback method must accept a IAsyncResult instance as a parameter.