Compartilhar via


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 (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Function MapToIcon ( _
    fileName As String, _
    progId As String, _
    size As IconSize _
) As ClientResult(Of String)
'Usage
Dim instance As Web
Dim fileName As String
Dim progId As String
Dim size As IconSize
Dim returnValue As ClientResult(Of String)

returnValue = instance.MapToIcon(fileName, _
    progId, size)
[RemoteAttribute]
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.

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.

See Also

Reference

Web Class

Web Members

Microsoft.SharePoint.Client Namespace