I searched for a way to retrieve all Credentials in a loop.
THIS post helped me to retrieve them all. But there are many credentials and they also change.
So is there a way to retrieve them by getting a list of all available credetialnames and then loop through this list to do further stuff?
Atm it's really static like
public void GetCredentials()
{
var cm = new Credential();
cm.Target = "TERMSRV/servername.xy";
//(Credentialname - static | i want to enumerate this)
if (!cm.Exists())
{
MessageBox.Show("not found", "Warning", MessageBoxButtons.OK);
}
cm.Load();
MessageBox.Show(cm.Username + " - " + cm.Password, "Info", MessageBoxButtons.OK);
}
EDIT: Im not searching for informations how loop works :D I am looking for a property of credentials
that contains all available credentials in a kind of a list...