Microsoft.IdentityModel和System.IdentityModel之间的区别

编程入门 行业动态 更新时间:2024-10-22 08:39:45
本文介绍了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之间的区别

本文发布于:2023-11-13 00:13:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582872.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区别   Microsoft   IdentityModel   System

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!