共用方式為


RfcommDeviceService.GetDeviceSelectorForBluetoothDeviceAndServiceId 方法

定義

多載

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId)

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

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode)

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

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId)

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

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

參數

bluetoothDevice
BluetoothDevice

遠端藍牙裝置。

serviceId
RfcommServiceId

服務識別碼。

傳回

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

另請參閱

適用於

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode)

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

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

參數

bluetoothDevice
BluetoothDevice

遠端藍牙裝置。

serviceId
RfcommServiceId

服務識別碼。

cacheMode
BluetoothCacheMode

快取模式。

傳回

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

另請參閱

適用於