SPUser.AllowBrowseUserInfo property
取得或設定值,指出使用者是否可以取得網站的使用者的相關資訊。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property AllowBrowseUserInfo As Boolean
Get
Set
'用途
Dim instance As SPUser
Dim value As Boolean
value = instance.AllowBrowseUserInfo
instance.AllowBrowseUserInfo = value
public bool AllowBrowseUserInfo { get; set; }
Property value
Type: System.Boolean
true SPUser 物件是允許存取的使用者資訊。否則false。
備註
只有當IsApplicationPrincipal屬性是true, AllowBrowseUserInfo屬性可以是true 。
除非應用程式需要存取使用者資訊,建議該AllowBrowseUserInfo設定為false。這可確保應用程式無法存取使用者的資訊,即使其使用權限指派否則會讓它有這類存取。