DeviceInformationPairing.TryRegisterForAllInboundPairingRequests 方法

定义

注册应用程序以处理所有入站配对请求。

public:
 static bool TryRegisterForAllInboundPairingRequests(DevicePairingKinds pairingKindsSupported);
 static bool TryRegisterForAllInboundPairingRequests(DevicePairingKinds const& pairingKindsSupported);
public static bool TryRegisterForAllInboundPairingRequests(DevicePairingKinds pairingKindsSupported);
function tryRegisterForAllInboundPairingRequests(pairingKindsSupported)
Public Shared Function TryRegisterForAllInboundPairingRequests (pairingKindsSupported As DevicePairingKinds) As Boolean

参数

pairingKindsSupported
DevicePairingKinds

应用支持的配对类型。

返回

Boolean

bool

尝试是否成功。

Windows 要求

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

注解

此 API 仅适用于 Windows 10 IoT 核心版 (IoT Core) 应用程序。

适用于