Export (0) Print
Expand All

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)

public static void EnsureAuthentication(
	SPWeb web
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

An Microsoft.SharePoint.SPWeb object that represents the site.

Show:
© 2014 Microsoft