Share via


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)

Syntax

'Declaration
Public ReadOnly Property AllowAnonymousAccess As Boolean
    Get
'Usage
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

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace