确定 URL 是否适合于重定向验证它是任一相对于,或者驻留在当前的 Web 服务器或当前 Web 应用程序中的门户服务器。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
)
参数
url
类型:System.String重定向 URL。
web
类型:Microsoft.SharePoint.SPWebSPWeb对象表示该网站。
返回值
类型:System.Boolean
true如果 URL 是适用于重定向 ;否则为false。