Can I add custom properties to PasswordCredential.Properties?

后端 未结 2 673
[愿得一人]
[愿得一人] 2020-12-21 16:28

In WinRT API there is Windows.Security.Credentials namespace which contains the PasswordCredential class. Using it we can encrypt sensitive data like user names and password

相关标签:
2条回答
  • 2020-12-21 16:53

    No it is a read only property, so you can't set it. It's designed so you can enumerate the properties of the object (not that the c# class properties, but the individual properties of a properties collection). The naming makes this confusing.

    0 讨论(0)
  • 2020-12-21 17:01

    Unfortunately, the PasswordCredentials.Properties is an instance of PasswordCredentialPropertyStore which documentation describes every method as "...reserved for internal use and not intended to be used in your code".

    That's why it is not useable for programmers.

    0 讨论(0)
提交回复
热议问题