共用方式為


SPUtility.RedirectValidate method (String, SPWeb)

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

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

Syntax

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

returnValue = SPUtility.RedirectValidate(url, _
    web)
public static bool RedirectValidate(
    string url,
    SPWeb web
)

參數

傳回值

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

請參閱

參照

SPUtility class

SPUtility members

RedirectValidate overload

Microsoft.SharePoint.Utilities namespace