WiFiDirectDevice.FromIdAsync WiFiDirectDevice.FromIdAsync WiFiDirectDevice.FromIdAsync WiFiDirectDevice.FromIdAsync WiFiDirectDevice.FromIdAsync Method

Definition

Overloads

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Creates an instance of the WiFiDirectDevice class for the specified device interface id.

FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters)

Creates an instance of the WiFiDirectDevice class for the specified device interface id with specific connection parameters.

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Creates an instance of the WiFiDirectDevice class for the specified device interface id.

public : static IAsyncOperation<WiFiDirectDevice> FromIdAsync(Platform::String deviceId)
static IAsyncOperation<WiFiDirectDevice> FromIdAsync(winrt::hstring deviceId) const;
public static IAsyncOperation<WiFiDirectDevice> FromIdAsync(String deviceId)
Public Shared Function FromIdAsync(deviceId As String) As IAsyncOperation(Of WiFiDirectDevice)
Windows.Devices.WiFiDirect.WiFiDirectDevice.fromIdAsync(deviceId).done( /* Your success and error handlers */ );

Parameters

deviceId
String String String

The DeviceInformation Id of a Wi-Fi Direct device.

Returns

Remarks

You can use the GetDeviceSelector methods to enumerate Wi-Fi Direct devices to determine their interface ids.

See also

FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters) FromIdAsync(String, WiFiDirectConnectionParameters)

Creates an instance of the WiFiDirectDevice class for the specified device interface id with specific connection parameters.

public : static IAsyncOperation<WiFiDirectDevice> FromIdAsync(Platform::String deviceId, WiFiDirectConnectionParameters connectionParameters)
static IAsyncOperation<WiFiDirectDevice> FromIdAsync(winrt::hstring deviceId, WiFiDirectConnectionParameters connectionParameters) const;
public static IAsyncOperation<WiFiDirectDevice> FromIdAsync(String deviceId, WiFiDirectConnectionParameters connectionParameters)
Public Shared Function FromIdAsync(deviceId As String, connectionParameters As WiFiDirectConnectionParameters) As IAsyncOperation(Of WiFiDirectDevice)
Windows.Devices.WiFiDirect.WiFiDirectDevice.fromIdAsync(deviceId, connectionParameters).done( /* Your success and error handlers */ );

Parameters

deviceId
String String String

The DeviceInformation Id of a Wi-Fi Direct device.

connectionParameters
WiFiDirectConnectionParameters WiFiDirectConnectionParameters WiFiDirectConnectionParameters

Connection parameters for a Wi-Fi Direct connect/pairing operation.

Returns

Remarks

You can use the GetDeviceSelector methods to enumerate Wi-Fi Direct devices to determine their interface ids.

See also