WiFiDirectService.FromIdAsync(String) 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.
Static method that retrieves a WiFiDirectService instance for a Wi-Fi Direct Service offered by the device with a given device ID.
public:
static IAsyncOperation<WiFiDirectService ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<WiFiDirectService> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WiFiDirectService> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of WiFiDirectService)
Parameters
- deviceId
-
String
Platform::String
winrt::hstring
Device ID of the device that advertises the desired Wi-Fi Direct Service.
Returns
An asynchronous retrieval operation. On successful completion, returns an instance of WiFiDirectService specific to the desired service instance, advertised by the indicated device.
- Attributes
Remarks
Your code retrieves Device IDs for service advertisers by using the search and enumeration methods in the Windows.Devices.Enumeration namespace.