SPUtility.EnsureAuthentication method (SPWeb)
決定是否目前使用者通過驗證,以及web參數不是a null reference (Nothing in Visual Basic);否則,要求使用者進行驗證。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Sub EnsureAuthentication ( _
web As SPWeb _
)
'用途
Dim web As SPWebSPUtility.EnsureAuthentication(web)
public static void EnsureAuthentication(
SPWeb web
)
參數
web
Type: Microsoft.SharePoint.SPWeb代表網站的Microsoft.SharePoint.SPWeb物件。