Every where they are giving answers for getting user......but i want to get credentials from Credential Manager? I have tried all the ways using .,
1.System.Security.Principal.WindowsIdentity.GetCurrent().Name
**Output:** => "DESKTOP\\India"
This is giving domain name and not credentail manager credentials. 2.I have tried below code..using credential package from nuget
var cm = new Credential();
cm.Target = "Here what i have to put????";
I got a doubt here to what i have to put in cm.target="?????" 3.Tried
Environment.UserName()
Output: "India"(This is not from credential manager credentials)
4.Tried
System.Net.CredentialCache.DefaultCredentials()
Output:
{
`Username:'',`
password:''
}
Here i think we have to send the parametred and these are also not from windows credential manager credentials.
Iam waiting for help from you folks.any help will be appreciated.