다음을 통해 공유


SPUtility.EnsureAuthentication Method

Determines whether the current user is authenticated, and that a context Web for the current HTTP request exists; otherwise, asks 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
'Usage

SPUtility.EnsureAuthentication()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void EnsureAuthentication()

See Also

Reference

SPUtility Class

SPUtility Members

EnsureAuthentication Overload

Microsoft.SharePoint.Utilities Namespace