Поделиться через


Метод Web.MapToIcon

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

Пространство имен:  Microsoft.SharePoint.Client
Сборки:   Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)

Синтаксис

'Декларация
Public Function MapToIcon ( _
    fileName As String, _
    progId As String, _
    size As IconSize _
) As ClientResult(Of String)
'Применение
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
)

Параметры

  • fileName
    Тип: System.String

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

    If a пустая ссылка (Nothing в Visual Basic) or empty string is passed into this parameter, the protocol server must return an empty string.

  • progId
    Тип: System.String

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

    If the value of this parameter is пустая ссылка (Nothing в Visual Basic) or an empty string, the protocol server must provide the name of the image file based on the specified fileName.

Возвращаемое значение

Тип: 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.

См. также

Справочные материалы

Web класс

Элементы Web

Пространство имен Microsoft.SharePoint.Client