Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the current user is authenticated, and that the web parameter is not a null reference (Nothing in Visual Basic); otherwise, requests the user to authenticate.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub EnsureAuthentication ( _
web As SPWeb _
)
'Usage
Dim web As SPWebSPUtility.EnsureAuthentication(web)
public static void EnsureAuthentication(
SPWeb web
)
Parameters
web
Type: Microsoft.SharePoint.SPWebAn Microsoft.SharePoint.SPWeb object that represents the site.