Share via


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

Platform::String

winrt::hstring

The resource for which the credential is used.

userName
String

Platform::String

winrt::hstring

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.

Applies to