DevicePairingRequestedEventArgs.AcceptWithPasswordCredential 方法

定义

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

public:
 virtual void AcceptWithPasswordCredential(PasswordCredential ^ passwordCredential) = AcceptWithPasswordCredential;
void AcceptWithPasswordCredential(PasswordCredential const& passwordCredential);
public void AcceptWithPasswordCredential(PasswordCredential passwordCredential);
function acceptWithPasswordCredential(passwordCredential)
Public Sub AcceptWithPasswordCredential (passwordCredential As PasswordCredential)

参数

passwordCredential
PasswordCredential

一个 对象,该对象封装用于尝试配对设备的用户名和密码。

Windows 要求

设备系列
Windows 10, version 1903 (在 10.0.18362.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v8.0 中引入)

适用于