SPWeb.AllowAnonymousAccess Property

Gets a Boolean value that indicates whether anonymous access is allowed for the website.

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

public bool AllowAnonymousAccess { get; }

Property Value

Type: System.Boolean
true if anonymous access is allowed; otherwise, false.
Show: