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()

返回活动用户的应用的注册状态。

RegisterApp()

向 Windows 注册关联的 PhoneLineTransportDevice 的应用。

RegisterAppForUser(User)

向 Windows 注册关联的 PhoneLineTransportDevice 的应用。

RequestAccessAsync()

用于请求对 PhoneLineTransportDevice 的显式访问。

UnregisterApp()

为关联的 PhoneLineTransportDevice 取消注册 Windows 的应用。

UnregisterAppForUser(User)

为关联的 PhoneLineTransportDevice 取消注册 Windows 的应用。

事件

AudioRoutingStatusChanged

基础传输设备的音频路由更改时引发的事件。

InBandRingingEnabledChanged

带内铃声启用状态更改时引发的事件。

适用于