An asynchronous version of DiscoverDevices(Int32, Boolean, Boolean, Boolean, Boolean)
| C# | Visual Basic |
public IAsyncResult BeginDiscoverDevices( int maxDevices, bool authenticated, bool remembered, bool unknown, bool discoverableOnly, AsyncCallback callback, Object state )
Public Function BeginDiscoverDevices ( _ maxDevices As Integer, _ authenticated As Boolean, _ remembered As Boolean, _ unknown As Boolean, _ discoverableOnly As Boolean, _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult
- maxDevices (Int32)
- See DiscoverDevices(Int32, Boolean, Boolean, Boolean, Boolean).
- authenticated (Boolean)
- See DiscoverDevices(Int32, Boolean, Boolean, Boolean, Boolean).
- remembered (Boolean)
- See DiscoverDevices(Int32, Boolean, Boolean, Boolean, Boolean).
- discoverableOnly (Boolean)
- See DiscoverDevices(Int32, Boolean, Boolean, Boolean, Boolean).
- callback (AsyncCallback)
- An optional asynchronous callback, to be called when the discovery is complete.
- state (Object)
- A user-provided object that distinguishes this particular asynchronous discovery request from other requests.
An IAsyncResult that represents the
asynchronous discovery, which could still be pending.