共用方式為


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
)

參數

請參閱

參照

SPUtility class

SPUtility members

EnsureAuthentication overload

Microsoft.SharePoint.Utilities namespace