DevicePairingRequestedEventArgs.AcceptWithPasswordCredential Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
|