Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个显示调查的 Web 部件。我需要获取当前用户,以便根据当前用户的权限隐藏或显示调查的某些信息。
SPContext.Current.Web.CurrentUser应该做的伎俩。它具有您应该能够使用的IsSiteAdmin功能。Groups
SPContext.Current.Web.CurrentUser
IsSiteAdmin
Groups