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.
我在 SharePoint 2013 中开发了一个 WebPart,我必须创建一个名为 IsLoggedInUser() 的函数,如果登录用户是匿名的,则返回 false,否则返回 true。
有人可以帮助我吗?
if (SPContext.Current.Web.CurrentUser != null) return true;