共用方式為


SPWeb.WebAnonymousState Enumeration

Specifies settings for anonymous access to a Web site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Enumeration WebAnonymousState
'Usage
Dim instance As SPWeb.WebAnonymousState
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public enum WebAnonymousState

Members

Member name Description
Disabled Specifies that anonymous users have no access to a Web site.
Enabled Specifies that anonymous users can access lists and libraries if the lists and libraries allow anonymous access.
On Specifies that anonymous users can access the entire Web site. This setting means that the value of the AnonymousPermMask64 property depends on the permission mask for the Limited Access role.

See Also

Reference

Microsoft.SharePoint Namespace