Share via


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Sub EnsureAuthentication ( _
    web As SPWeb _
)
'Usage
Dim web As SPWebSPUtility.EnsureAuthentication(web)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void EnsureAuthentication(
    SPWeb web
)

Parameters

See Also

Reference

SPUtility Class

SPUtility Members

EnsureAuthentication Overload

Microsoft.SharePoint.Utilities Namespace