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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.