PhoneLineTransportDevice 類別

定義

表示與 PhoneLine 相關聯的硬體裝置。 目前僅支援搭配藍牙裝置使用。

public ref class PhoneLineTransportDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PhoneLineTransportDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PhoneLineTransportDevice
Public NotInheritable Class PhoneLineTransportDevice
繼承
Object Platform::Object IInspectable PhoneLineTransportDevice
屬性

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (已於 v5.0 引進)

屬性

AudioRoutingStatus

取得基礎傳輸裝置的音訊路由狀態。

DeviceId

取得與 PhoneLineTransportDevice 相關聯之硬體裝置的 DeviceID。

InBandRingingEnabled

取得基礎傳輸裝置的頻內響鈴啟用狀態。

Transport

取得 PhoneLineTransportDevice 的 PhoneLineTransport。

方法

Connect()

嘗試建立與裝置的連線。

ConnectAsync()

嘗試以異步方式建立與裝置的連線。

FromId(String)

從指定的 DeviceId 取得 PhoneLineTransportDevice。

GetDeviceSelector()

取得進階查詢語法 (AQS) 字串串,應用程式可以傳遞至 DeviceInformation.FindAllAsync ,以尋找 PhoneLineTransportDevices。

GetDeviceSelector(PhoneLineTransport)

取得進階查詢語法 (AQS) 字串串,應用程式可以傳遞至 DeviceInformation.FindAllAsync ,以尋找指定類型的 PhoneLineTransportDevices。

IsRegistered()

傳回作用中使用者的app註冊狀態。

RegisterApp()

向 Windows 註冊應用程式,以取得相關聯的 PhoneLineTransportDevice。

RegisterAppForUser(User)

向 Windows 註冊應用程式,以取得相關聯的 PhoneLineTransportDevice。

RequestAccessAsync()

用來要求明確存取 PhoneLineTransportDevice。

UnregisterApp()

針對相關聯的 PhoneLineTransportDevice 向 Windows 取消註冊應用程式。

UnregisterAppForUser(User)

針對相關聯的 PhoneLineTransportDevice 向 Windows 取消註冊應用程式。

事件

AudioRoutingStatusChanged

當基礎傳輸裝置的音訊路由變更時所引發的事件。

InBandRingingEnabledChanged

當頻內響鈴啟用狀態變更時所引發的事件。

適用於