WiFiDirectDevice.FromIdAsync Method

Definition

Overloads

FromIdAsync(String)

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

FromIdAsync(String, WiFiDirectConnectionParameters)

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

FromIdAsync(String)

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

public:
 static IAsyncOperation<WiFiDirectDevice ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.Overload("FromIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<WiFiDirectDevice> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.Overload("FromIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WiFiDirectDevice> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of WiFiDirectDevice)

Parameters

deviceId
String

Platform::String

winrt::hstring

The DeviceInformation Id of a Wi-Fi Direct device.

Returns

An asynchronous operation to retrieve the WiFiDirectDevice that was created.

Attributes

Remarks

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

See also

Applies to

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);
/// [Windows.Foundation.Metadata.Overload("FromIdAsync")]
 static IAsyncOperation<WiFiDirectDevice> FromIdAsync(winrt::hstring const& deviceId, WiFiDirectConnectionParameters const& connectionParameters);
[Windows.Foundation.Metadata.Overload("FromIdAsync")]
public static IAsyncOperation<WiFiDirectDevice> FromIdAsync(string deviceId, WiFiDirectConnectionParameters connectionParameters);
function fromIdAsync(deviceId, connectionParameters)
Public Shared Function FromIdAsync (deviceId As String, connectionParameters As WiFiDirectConnectionParameters) As IAsyncOperation(Of WiFiDirectDevice)

Parameters

deviceId
String

Platform::String

winrt::hstring

The DeviceInformation Id of a Wi-Fi Direct device.

connectionParameters
WiFiDirectConnectionParameters

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

Returns

An asynchronous operation to retrieve the WiFiDirectDevice that was created.

Attributes

Remarks

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

See also

Applies to