共用方式為


SPUtility.RedirectValidate method (String, HttpContext)

會決定是否 URL 重新導向的適當來確認它是可以是相對或常駐目前 Web 伺服器或入口網站的伺服器。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Function RedirectValidate ( _
    url As String, _
    context As HttpContext _
) As Boolean
'用途
Dim url As String
Dim context As HttpContext
Dim returnValue As Boolean

returnValue = SPUtility.RedirectValidate(url, _
    context)
public static bool RedirectValidate(
    string url,
    HttpContext context
)

參數

傳回值

Type: System.Boolean
true如果 URL 合適的重新導向 ;否則,請false。

請參閱

參照

SPUtility class

SPUtility members

RedirectValidate overload

Microsoft.SharePoint.Utilities namespace