SPUtility.MapToServerFileRedirect 方法 (SPWeb, String, String, Int32)

返回文件或其版本的重定向 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
)

参数

  • strProgId
    类型:System.String

    文件的程序 ID (ProgId)。

返回值

类型:System.String
一个字符串,包含的重定向 URL。

另请参阅

引用

SPUtility 类

SPUtility 成员

MapToServerFileRedirect 重载

Microsoft.SharePoint.Utilities 命名空间