共用方式為


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

取得或設定系統代表應用程式連線或接受連線的特定遠端藍牙裝置。

適用於

另請參閱