在System.Security.Claims命名空间的成员是不可用? [英] A member of the System.Security.Claims namespace is not available?

查看:1031
本文介绍了在System.Security.Claims命名空间的成员是不可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习在.NET 4.5中新的基于声明的身份验证方法,并正在使用一个控制台应用程序这样做。根据MSDN <一个href=\"http://msdn.microsoft.com/en-us/library/system.security.claims.claimsauthenticationmanager.aspx\"相对=nofollow>这里,ClaimsAuthenticationManager是System.Security.Claims命名空间中的一员。正如你所看到的,我没有得到这个选项。我已经确定的项目使用.NET 4.5。我简单的东西在这里...任何人有什么建议?

I am learning the new Claims-based Authentication methods in .NET 4.5, and am using a Console app to do so. According to MSDN here, ClaimsAuthenticationManager is a member of System.Security.Claims namespace. As you can see here, I am not getting this option. I have made sure the project is using .NET 4.5. I am missing something simple here... anyone have any suggestions?

推荐答案

您需要添加到 System.IdentityModel.dll

您可以为<一个文档中看到这href=\"http://msdn.microsoft.com/en-us/library/system.security.claims.claimsauthenticationmanager.aspx\"><$c$c>ClaimsAuthenticationManager:

命名空间:System.Security.Claims

Namespace: System.Security.Claims

大会:System.IdentityModel(以System.IdentityModel.dll)

Assembly: System.IdentityModel (in System.IdentityModel.dll)

这篇关于在System.Security.Claims命名空间的成员是不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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