Web.MapToIcon - Méthode
Returns the name of the image file for the icon that is used to represent the specified file.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Function MapToIcon ( _
fileName As String, _
progId As String, _
size As IconSize _
) As ClientResult(Of String)
'Utilisation
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
)
Paramètres
fileName
Type : System.StringSpecifies the name of the file which is used to determine the image file name.
If a une référence Null (Rien dans Visual Basic) or empty string is passed into this parameter, the protocol server must return an empty string.
progId
Type : System.StringSpecifies the ProgID of the application that was used to create the file.
If the value of this parameter is une référence Null (Rien dans 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.IconSizeSpecifies the icon size.
Valeur renvoyée
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.