SPUtility.EnsureAuthentication method (SPWeb)

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

See also

Reference

SPUtility class

SPUtility members

EnsureAuthentication overload

Microsoft.SharePoint.Utilities namespace