共用方式為


BluetoothDevice.FromHostNameAsync(HostName) 方法

定義

傳回指定HostName所識別的BluetoothDevice物件。

public:
 static IAsyncOperation<BluetoothDevice ^> ^ FromHostNameAsync(HostName ^ hostName);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<BluetoothDevice> FromHostNameAsync(HostName const& hostName);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<BluetoothDevice> FromHostNameAsync(HostName hostName);
function fromHostNameAsync(hostName)
Public Shared Function FromHostNameAsync (hostName As HostName) As IAsyncOperation(Of BluetoothDevice)

參數

hostName
HostName

識別 BluetoothDevice 實例的 HostName。

傳回

非同步作業完成之後,傳回指定HostName所識別的BluetoothDevice物件。

屬性

Windows 需求

應用程式功能
bluetooth

適用於