我刚刚开始使用Windows Identity Foundation,当我使用Windows Identity Foundation的代码示例进行开发时,收到了有关System.IdentityModel的项目引用的错误消息。当我简单地忽略 System.IdentityModel命名空间时,我发现许多与Microsoft.IdentityModel命名空间中可用的类相同。
我被告知要使用Windows然而,Identity Foundation开发声明,我无法区分2个程序集和命名空间集之间的区别。
有谁可以请告诉我Microsoft.IdentityModel之间有什么区别和System.IdentityModel以及如何知道何时使用每个相应的命名空间?
谢谢。
解决方案
WIF构建于System.IdentityModel之上。您通常使用Microsoft。*类,如Claim和ClaimTypes等。
我知道这有时令人困惑 - 但只要您在System。*和Microsoft。*之间做出选择 - 请选择Microsoft。 *
I have just started working with Windows Identity Foundation and as I was developing using a code sample for Windows Identity Foundation, I received an error message regarding a project reference to System.IdentityModel. When I briefly overlooked the System.IdentityModel namespace, I found many of the same classes as are available in the Microsoft.IdentityModel namespace.
I have been told to work with Windows Identity Foundation to develop Claims, however, I am unable to tell the difference between the 2 assemblies and set of namespaces.
Could anyone please tell me what are the differences between Microsoft.IdentityModel and System.IdentityModel and how do I know when to use each respective namespace?
Thanks.
解决方案WIF builds upon System.IdentityModel. You typically use the Microsoft.* classes like Claim and ClaimTypes etc.
I know this is sometimes confusing - but whenever you have a choice between System.* and Microsoft.* - choose Microsoft.*
更多推荐
Microsoft.IdentityModel和System.IdentityModel之间的区别
发布评论