Vote count:
0
I'm trying to make an application to add and retrieve credentials in windows vault. I used the following code
private void button1_Click(object sender, EventArgs e)
{
var vault = new PasswordVault();
var credential = new PasswordCredential(RESOURCE_NAME, userName, password);
vault.Add(credential);
}
It says PasswordVault(); and PasswordCredential namespace couldnot find. How to fix this?
asked 2 mins ago
1 Answer
Vote count:
0
in your file header just add
using Windows.Security.Credentials
answered 7 secs ago
Aucun commentaire:
Enregistrer un commentaire