共用方式為


RfcommDeviceService.GetDeviceSelectorForBluetoothDevice 方法

定義

多載

GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode)

取得進階查詢語法 (AQS) 字串,以識別遠端藍牙裝置上所有 Rfcomm 服務的快取實例。

GetDeviceSelectorForBluetoothDevice(BluetoothDevice)

取得進階查詢語法 (AQS) 字串,以識別遠端藍牙裝置上所有 Rfcomm 服務的實例。

GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode)

取得進階查詢語法 (AQS) 字串,以識別遠端藍牙裝置上所有 Rfcomm 服務的快取實例。

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDevice(BluetoothDevice ^ bluetoothDevice, BluetoothCacheMode cacheMode);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceWithCacheMode")]
 static winrt::hstring GetDeviceSelectorForBluetoothDevice(BluetoothDevice const& bluetoothDevice, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDeviceWithCacheMode")]
public static string GetDeviceSelectorForBluetoothDevice(BluetoothDevice bluetoothDevice, BluetoothCacheMode cacheMode);
function getDeviceSelectorForBluetoothDevice(bluetoothDevice, cacheMode)
Public Shared Function GetDeviceSelectorForBluetoothDevice (bluetoothDevice As BluetoothDevice, cacheMode As BluetoothCacheMode) As String

參數

bluetoothDevice
BluetoothDevice

遠端藍牙裝置。

cacheMode
BluetoothCacheMode

快取模式。

傳回

String

Platform::String

winrt::hstring

AQS 字串,用於識別遠端藍牙裝置上所有 Rfcomm 服務的快取實例。

屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
bluetooth

另請參閱

適用於

GetDeviceSelectorForBluetoothDevice(BluetoothDevice)

取得進階查詢語法 (AQS) 字串,以識別遠端藍牙裝置上所有 Rfcomm 服務的實例。

public:
 static Platform::String ^ GetDeviceSelectorForBluetoothDevice(BluetoothDevice ^ bluetoothDevice);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDevice")]
 static winrt::hstring GetDeviceSelectorForBluetoothDevice(BluetoothDevice const& bluetoothDevice);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorForBluetoothDevice")]
public static string GetDeviceSelectorForBluetoothDevice(BluetoothDevice bluetoothDevice);
function getDeviceSelectorForBluetoothDevice(bluetoothDevice)
Public Shared Function GetDeviceSelectorForBluetoothDevice (bluetoothDevice As BluetoothDevice) As String

參數

bluetoothDevice
BluetoothDevice

遠端藍牙裝置。

傳回

String

Platform::String

winrt::hstring

用於識別遠端藍牙裝置上所有 Rfcomm 服務實例的 AQS 字串。

屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
bluetooth

另請參閱

適用於