DeviceInformationPairing.TryRegisterForAllInboundPairingRequests 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注册应用程序以处理所有入站配对请求。
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) 应用程序。