DevicePairingRequestedEventArgs 类

定义

PairingRequested 事件提供数据。

public ref class DevicePairingRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DevicePairingRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DevicePairingRequestedEventArgs
Public NotInheritable Class DevicePairingRequestedEventArgs
继承
Object Platform::Object IInspectable DevicePairingRequestedEventArgs
属性

Windows 要求

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

注解

版本历史记录

Windows 版本 SDK 版本 增值
1903 18362 AcceptWithPasswordCredential

属性

DeviceInformation

获取与此配对请求关联的 DeviceInformation 对象。

PairingKind

获取与此配对事件关联的配对类型。

Pin

获取与配对请求关联的引脚。

方法

Accept()

接受 PairingRequested 事件,并将设备与应用程序配对。

Accept(String)

接受 PairingRequested 事件,并将设备与应用程序配对。 需要针脚进行配对。

AcceptWithAddress(String)

PairingRequested 事件提供数据。

AcceptWithPasswordCredential(PasswordCredential)

接受 PairingRequested 事件,并将设备与应用程序配对。 需要用户名和密码进行配对。

GetDeferral()

请求 延迟 以支持异步操作。

适用于