共用方式為


SPUtility.EnsureAuthentication method

Include protected members
Include inherited members

會判斷是否目前使用者已驗證的使用者,是否不是,會要求使用者進行驗證。

Overload list

  Name Description
Public methodStatic member EnsureAuthentication() 決定是否目前使用者通過驗證,以及目前 HTTP 要求內容 Web 存在的 ;否則,詢問使用者進行驗證。
Public methodStatic member EnsureAuthentication(SPWeb) 決定是否目前使用者通過驗證,以及web參數不是a null reference (Nothing in Visual Basic);否則,要求使用者進行驗證。

Top

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace