Windows Dev Center

PasswordVault.FindAllByUserName | findAllByUserName method

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

Syntax


public:
IVectorView<PasswordCredential>^ FindAllByUserName(
  String^ userName
)

Parameters

userName

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The user name to be searched for.

Return value

Type: IVectorView<PasswordCredential> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<PasswordCredential> [.NET]

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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Security.Credentials
Windows::Security::Credentials [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Security.Credentials
Windows::Security::Credentials [C++]

Metadata

Windows.winmd

See also

PasswordVault

 

 

Show:
© 2015 Microsoft