Share via


PasswordVault.FindAllByUserName(String) Method

Definition

Searches the Credential Locker for credentials that match the user name specified.

public:
 virtual IVectorView<PasswordCredential ^> ^ FindAllByUserName(Platform::String ^ userName) = FindAllByUserName;
IVectorView<PasswordCredential> FindAllByUserName(winrt::hstring const& userName);
public IReadOnlyList<PasswordCredential> FindAllByUserName(string userName);
function findAllByUserName(userName)
Public Function FindAllByUserName (userName As String) As IReadOnlyList(Of PasswordCredential)

Parameters

userName
String

Platform::String

winrt::hstring

The user name to be searched for. If a match does not exist, an exception will throw.

Returns

When this method returns, contains an IVectorView of credential objects that match the search criteria.

Remarks

Each object returned will have the proper resource and user name, but it will not include the password.

Applies to