SPSite.IISAllowsAnonymous property

Gets a Boolean value that indicates whether anonymous access is enabled in Microsoft Internet Information Services (IIS).

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

Syntax

'Declaration
Public ReadOnly Property IISAllowsAnonymous As Boolean
    Get
'Usage
Dim instance As SPSite
Dim value As Boolean

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

Property value

Type: System.Boolean
true if anonymous access is enabled in IIS; otherwise, false.

See also

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace