RfcommConnectionTrigger 类

定义

表示在建立 RFCOMM 入站或出站连接时启动后台任务的触发器。

public ref class RfcommConnectionTrigger sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RfcommConnectionTrigger final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class RfcommConnectionTrigger final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RfcommConnectionTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class RfcommConnectionTrigger
function RfcommConnectionTrigger()
Public NotInheritable Class RfcommConnectionTrigger
继承
Object Platform::Object IInspectable RfcommConnectionTrigger
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

RfcommConnectionTrigger()

初始化 RfcommConnectionTrigger 类的新实例。

属性

AllowMultipleConnections

获取或设置应用是否希望一次处理多个连接。

InboundConnection

获取或设置 RfcommInboundConnectionInformation 对象,该对象描述系统如何代表应用播发和侦听入站连接。

OutboundConnection

获取或设置 RfcommOutboundConnectionInformation 对象,该对象描述系统如何代表应用创建传出连接。

ProtectionLevel

获取或设置代表应用创建或接受的连接所需的最低保护级别。

RemoteHostName

获取或设置系统将代表应用连接到或接受来自的特定远程蓝牙设备。

适用于

另请参阅