ManagementServer.BeginExecuteDeviceDiscovery(IList<DeviceDiscoveryConfiguration>, AsyncCallback, Object) 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.
Begin device discovery.
public:
IAsyncResult ^ BeginExecuteDeviceDiscovery(System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Administration::DeviceDiscoveryConfiguration ^> ^ discoveryConfigurations, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecuteDeviceDiscovery (System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Administration.DeviceDiscoveryConfiguration> discoveryConfigurations, AsyncCallback callback, object state);
member this.BeginExecuteDeviceDiscovery : System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Administration.DeviceDiscoveryConfiguration> * AsyncCallback * obj -> IAsyncResult
Public Function BeginExecuteDeviceDiscovery (discoveryConfigurations As IList(Of DeviceDiscoveryConfiguration), callback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- discoveryConfigurations
- IList<DeviceDiscoveryConfiguration>
Discovery configurations.
- callback
- AsyncCallback
Optional callback.
- state
- Object
Optional state returned in callback.
Returns
IASyncResult.
Exceptions
Not currently connected to a management group.
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.