SPUtility.EnsureAuthentication-Methode
Bestimmt, ob der aktuelle Benutzer authentifiziert ist und ein Web-Kontext für die aktuelle HTTP-Anforderung vorhanden ist. Andernfalls fordert den Benutzer zu authentifizieren.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub EnsureAuthentication
'Usage
SPUtility.EnsureAuthentication()
public static void EnsureAuthentication()