PasswordVault.Retrieve(String, String) PasswordVault.Retrieve(String, String) PasswordVault.Retrieve(String, String) PasswordVault.Retrieve(String, String) PasswordVault.Retrieve(String, String) Method

Definition

Reads a credential from the Credential Locker.

public : PasswordCredential Retrieve(Platform::String resource, Platform::String userName)
PasswordCredential Retrieve(winrt::hstring resource, winrt::hstring userName) const;
public PasswordCredential Retrieve(String resource, String userName)
Public Function Retrieve(resource As String, userName As String) As PasswordCredential
var passwordCredential = passwordVault.retrieve(resource, userName);

Parameters

resource
String String String

The resource for which the credential is used.

userName
String String String

The user name that must be present in the credential.

Returns

The returned credential that contains all the data.

Remarks

If a match does not exist, an exception will throw.