SPSecurity.WebConfigAllowsAnonymous property
取得值,指出匿名使用者是否可以存取目前的Microsoft SharePoint Foundation 2010站台。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared ReadOnly Property WebConfigAllowsAnonymous As Boolean
Get
'用途
Dim value As Boolean
value = SPSecurity.WebConfigAllowsAnonymous
public static bool WebConfigAllowsAnonymous { get; }
Property value
Type: System.Boolean
true如果匿名使用者可以存取目前的Microsoft SharePoint Foundation 2010站台。否則, false。預設值為true。
備註
WebConfigAllowsAnonymous會傳回 false,如果<deny users="?" />是在web.config檔案中。