PasswordVault.Retrieve(String, String) 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.
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.