Microsoft.IdentityModel和System.IdentityModel之间的区别 [英] Difference between Microsoft.IdentityModel and System.IdentityModel

查看:58
本文介绍了Microsoft.IdentityModel和System.IdentityModel之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用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之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆