Export (0) Print
Expand All

SPUtility.MapToIcon method (SPWeb, String, String)

Returns the name of the image file for the icon that is used to represent the specified file.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static string MapToIcon(
	SPWeb web,
	string strFileName,
	string strProgID
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

An Microsoft.SharePoint.SPWeb object that represents the site containing the file.

strFileName
Type: System.String

A string that contains the file name.

strProgID
Type: System.String

A string that contains the program ID (ProgID) of the application that was used to create the file.

Return value

Type: System.String
A string that contains the name of the image file for the icon.
Show:
© 2014 Microsoft