SPUtility.MapToServerFileRedirect Method (SPWeb, String, String)
Returns the redirection URL for the file.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function MapToServerFileRedirect ( _
web As SPWeb, _
strFileName As String, _
strProgId As String _
) As String
'Usage
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
)
Parameters
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object that represents the site containing the file.
strFileName
Type: System.StringName of the file.
strProgId
Type: System.StringThe program ID (ProgId) for the file.
Return Value
Type: System.String
A string that contains the redirection URL.