共用方式為


SPUtility.MapToIcon method (SPWeb, String, String)

對於用於表示指定檔案的圖示傳回影像檔名稱。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Function MapToIcon ( _
    web As SPWeb, _
    strFileName As String, _
    strProgID As String _
) As String
'用途
Dim web As SPWeb
Dim strFileName As String
Dim strProgID As String
Dim returnValue As String

returnValue = SPUtility.MapToIcon(web, _
    strFileName, strProgID)
public static string MapToIcon(
    SPWeb web,
    string strFileName,
    string strProgID
)

參數

  • strFileName
    Type: System.String

    包含的檔案名稱的字串。

  • strProgID
    Type: System.String

    內含用來建立檔案的應用程式程式識別碼 (ProgID) 的字串。

傳回值

Type: System.String
包含圖示的圖像檔案名稱的字串。

請參閱

參照

SPUtility class

SPUtility members

MapToIcon overload

Microsoft.SharePoint.Utilities namespace