Freigeben über


SPSecurity.WebConfigAllowsAnonymous-Eigenschaft

Ruft einen Wert zurück, der angibt, ob anonyme Benutzer die aktuellen Microsoft SharePoint Foundation 2010 -Website zugreifen können.

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

Syntax

'Declaration
Public Shared ReadOnly Property WebConfigAllowsAnonymous As Boolean
    Get
'Usage
Dim value As Boolean

value = SPSecurity.WebConfigAllowsAnonymous
public static bool WebConfigAllowsAnonymous { get; }

Eigenschaftswert

Typ: System.Boolean
true wenn anonyme Benutzer die aktuellen Microsoft SharePoint Foundation 2010 -Website zugreifen können; andernfalls false. Der Standardwert ist true.

Hinweise

WebConfigAllowsAnonymous<deny users="?" /> in der Datei web.config wird false zurückgegeben.

Siehe auch

Referenz

SPSecurity Klasse

SPSecurity-Member

Microsoft.SharePoint-Namespace