Freigeben über


Web.MapToIcon-Methode

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

Namespace:  Microsoft.SharePoint.Client
Assemblys:   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)

Syntax

'Declaration
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)
public ClientResult<string> MapToIcon(
    string fileName,
    string progId,
    IconSize size
)

Parameter

  • fileName
    Typ: System.String

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

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

  • progId
    Typ: System.String

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

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

Rückgabewert

Typ: 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.

Siehe auch

Referenz

Web Klasse

Web-Member

Microsoft.SharePoint.Client-Namespace