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)


Public ReadOnly Property AllowAnonymousAccess As Boolean
Dim instance As SPWeb
Dim value As Boolean

value = instance.AllowAnonymousAccess
public bool AllowAnonymousAccess { get; }

Property value

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

See also


SPWeb class

SPWeb members

Microsoft.SharePoint namespace