SPIisSettings.AllowAnonymous property

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

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

Syntax

'Declaration
Public Property AllowAnonymous As Boolean
    Get
    Set
'Usage
Dim instance As SPIisSettings
Dim value As Boolean

value = instance.AllowAnonymous

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

Property value

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

See also

Reference

SPIisSettings class

SPIisSettings members

Microsoft.SharePoint.Administration namespace