SPWebApplicationBuilder.AllowAnonymousAccess property

Gets or sets a Boolean value that specifies whether the new Web application allows anonymous access.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property AllowAnonymousAccess As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As Boolean

value = instance.AllowAnonymousAccess

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

Property value

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

See also

Reference

SPWebApplicationBuilder class

SPWebApplicationBuilder members

Microsoft.SharePoint.Administration namespace