Share via


ManagementServer.BeginExecuteDeviceDiscovery Method (IList<DeviceDiscoveryConfiguration>, AsyncCallback, Object)

 

Applies To: Operations Manager for System Center 2012

Starts an asynchronous operation to discover devices in a specified IP address range.

Namespace:   Microsoft.EnterpriseManagement.Administration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

public IAsyncResult BeginExecuteDeviceDiscovery(
    IList<DeviceDiscoveryConfiguration> discoveryConfigurations,
    AsyncCallback callback,
    object state
)
public:
IAsyncResult^ BeginExecuteDeviceDiscovery(
    IList<DeviceDiscoveryConfiguration^>^ discoveryConfigurations,
    AsyncCallback^ callback,
    Object^ state
)
member BeginExecuteDeviceDiscovery : 
        discoveryConfigurations:IList<DeviceDiscoveryConfiguration> *
        callback:AsyncCallback *
        state:Object -> IAsyncResult
Public Function BeginExecuteDeviceDiscovery (
    discoveryConfigurations As IList(Of DeviceDiscoveryConfiguration),
    callback As AsyncCallback,
    state As Object
) As IAsyncResult

Parameters

  • state
    Type: System.Object

    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

Type: System.IAsyncResult

Returns 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 been 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 an IAsyncResult instance as a parameter.

See Also

ManagementServer Class
Microsoft.EnterpriseManagement.Administration Namespace

Return to top