Share via


BluetoothAdapter.FromIdAsync(String) メソッド

定義

指定された DeviceId によって識別される BluetoothAdapter オブジェクトを取得します。

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

パラメーター

deviceId
String

Platform::String

winrt::hstring

BluetoothAdapter インスタンスを識別する DeviceId 値。 これは、MatchingDeviceId、MAC アドレス、およびデバイス クラスを表す GUID を含むレジストリ情報を組み合わせた複合文字列です。 これは Windows.Devices.Enumeration.DeviceInformation.Id とは異なります。ただし、どちらも識別子文字列内に埋め込まれた Bluetooth 無線デバイスの MAC アドレスを含みます。

戻り値

非同期操作が完了したら、指定された DeviceId によって識別される BluetoothAdapter オブジェクトを返します。

属性

Windows の要件

アプリの機能
bluetooth

適用対象