PasswordVault.Retrieve(String, String) Method

Definition

Reads a credential from the Credential Locker.

public:
 virtual PasswordCredential ^ Retrieve(Platform::String ^ resource, Platform::String ^ userName) = Retrieve;
PasswordCredential Retrieve(winrt::hstring const& resource, winrt::hstring const& userName);
public PasswordCredential Retrieve(string resource, string userName);
function retrieve(resource, userName)
Public Function Retrieve (resource As String, userName As String) As PasswordCredential

Parameters

resource
String

The resource for which the credential is used.

userName
String

The user name that must be present in the credential.

Returns

PasswordCredential

The returned credential that contains all the data.

Remarks

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

Applies to