Export (0) Print
Expand All

Web.MapToIcon method

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public ClientResult<string> MapToIcon(
	string fileName,
	string progId,
	IconSize size
)

Parameters

fileName
Type: System.String

Specifies the name of the file which is used to determine the image file name.

If a a null reference (Nothing in Visual Basic) or empty string is passed into this parameter, the protocol server must return an empty string.

progId
Type: System.String

Specifies the ProgID of the application that was used to create the file.

If the value of this parameter is a null reference (Nothing in Visual Basic) or an empty string, the protocol server must provide the name of the image file based on the specified fileName.

size
Type: Microsoft.SharePoint.Client.Utilities.IconSize

Specifies the icon size.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
Returns a ClientResult<T> instance representing the name of the image file for the icon that is used to represent the specified file.
Show:
© 2014 Microsoft