返回文件或其版本的重定向 URL。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function MapToServerFileRedirect ( _
web As SPWeb, _
strFileName As String, _
strProgId As String, _
redirect As Integer _
) As String
用法
Dim web As SPWeb
Dim strFileName As String
Dim strProgId As String
Dim redirect As Integer
Dim returnValue As String
returnValue = SPUtility.MapToServerFileRedirect(web, _
strFileName, strProgId, redirect)
public static string MapToServerFileRedirect(
SPWeb web,
string strFileName,
string strProgId,
int redirect
)
参数
web
类型:Microsoft.SharePoint.SPWebSPWeb对象表示该网站包含该文件。
strFileName
类型:System.String文件的名称。
strProgId
类型:System.String文件的程序 ID (ProgId)。
redirect
类型:System.Int32SPTypeOfRedirect枚举值。
返回值
类型:System.String
一个字符串,包含的重定向 URL。