Share via


BluetoothDevice.FromIdAsync(String) Método

Definición

Devuelve un objeto BluetoothDevice identificado por el deviceId especificado.

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

Parámetros

deviceId
String

Platform::String

winrt::hstring

Valor deviceId que identifica la instancia de BluetoothDevice.

Devoluciones

Una vez completada la operación asincrónica, devuelve el objeto BluetoothDevice identificado por el deviceId especificado.

Atributos

Requisitos de Windows

Características de aplicaciones
bluetooth

Comentarios

Se debe llamar a este método desde un subproceso de interfaz de usuario.

Se aplica a