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