Share via


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)
Available in Sandboxed Solutions: No

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