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.StringSpecifies the name of the file which is used to determine the image file name.
If a 空引用(无 在 Visual Basic 中) or empty string is passed into this parameter, the protocol server must return an empty string.
progId
类型:System.StringSpecifies the ProgID of the application that was used to create the file.
If the value of this parameter is 空引用(无 在 Visual Basic 中) or an empty string, the protocol server must provide the name of the image file based on the specified fileName.
size
类型:Microsoft.SharePoint.Client.Utilities.IconSizeSpecifies the icon size.
返回值
类型: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.