Sharepoint 2010中的当前用户和FBA角色
我已使用FBA在Sharepoint 2010中登录FBA用户,并需要知道它具有哪些FBA角色。 SPContext.Current.Web.AllRolesForCurrentUser返回非FBA角色。Sharepoint 2010中的当前用户和FBA角色,sharepoint,sharepoint-2010,forms-authentication,Sharepoint,Sharepoint 2010,Forms Authentication,我已使用FBA在Sharepoint 2010中登录FBA用户,并需要知道它具有哪些FBA角色。 SPContext.Current.Web.AllRolesForCurrentUser返回非FBA角色。 如何为当前FBA用户获取FBA角色?我找到了问题的解决方案,非常简单: // Gets a value indicating whether the currently logged-on user is in the specified role System.Web.Security.Ro
如何为当前FBA用户获取FBA角色?我找到了问题的解决方案,非常简单:
// Gets a value indicating whether the currently logged-on user is in the specified role
System.Web.Security.Roles.IsUserInRole("Provider");
我找到了我的问题的解决方案,非常简单:
// Gets a value indicating whether the currently logged-on user is in the specified role
System.Web.Security.Roles.IsUserInRole("Provider");