SPUtility.MapToControl method
Returns the name of the control that can edit the specified file, including the website that contains the file and the ID of the program that created the file.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function MapToControl ( _
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.MapToControl(web, _
strFileName, strProgID)
public static string MapToControl(
SPWeb web,
string strFileName,
string strProgID
)
Parameters
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object that represents the website containing the file.
strFileName
Type: System.StringThe name of the file name.
strProgID
Type: System.StringA string that contains the program ID (ProgID) of the application that was used to create the file.
Return value
Type: System.String
Returns the name of the control.