[英]SharePoint 2013 test logged in User
我在SharePoint 2013中開發了WebPart,必須創建一個名為IsLoggedInUser()的函數,如果登錄用戶是匿名用戶,則該函數返回false,否則返回true。
有人可以幫我嗎?
if (SPContext.Current.Web.CurrentUser != null)
return true;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.