SPUtility.MapToServerFileRedirect method (SPWeb, String, String)
會傳回之檔案的重新導向 URL。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: Microsoft.SharePoint.SPWebSPWeb物件,代表包含該檔案的網站。
strFileName
Type: System.String檔案的名稱。
strProgId
Type: System.String程式識別碼 (ProgId) 的檔案。
傳回值
Type: System.String
內含重新導向 URL 的字串。