【问题标题】:current user and FBA roles in Sharepoint 2010Sharepoint 2010 中的当前用户和 FBA 角色
【发布时间】:2012-01-25 10:50:29
【问题描述】:

我在 Sharepoint 2010 中使用 FBA 登录了 FBA 用户,并且需要知道它具有哪些 FBA 角色。 SPContext.Current.Web.AllRolesForCurrentUser 返回非 FBA 角色。
如何获取当前 FBA 用户的 FBA 角色?

【问题讨论】:

    标签: sharepoint sharepoint-2010 forms-authentication


    【解决方案1】:

    我已经为我的问题找到了解决方案,很简单:

    // Gets a value indicating whether the currently logged-on user is in the specified role
    System.Web.Security.Roles.IsUserInRole("Provider");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-04
      • 1970-01-01
      • 1970-01-01
      • 2013-08-22
      • 2012-10-09
      • 1970-01-01
      相关资源
      最近更新 更多