Share via


DevicePairingRequestedEventArgs.AcceptWithPasswordCredential Method

Definition

Accepts a PairingRequested event and pairs the device with the application. Requires a user name and password for pairing purposes.

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)

Parameters

passwordCredential
PasswordCredential

An object that encapsulates the user name and password for attempting to pair the device.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to