WiFiDirectDevice.FromIdAsync 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.
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
- FromIdAsync(String, WiFiDirectConnectionParameters)
- GetDeviceSelector(WiFiDirectDeviceSelectorType)
- WiFiDirectDevice sample
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.