共用方式為


Web.MapToIcon 方法

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

命名空間:  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

    指定用來決定圖像檔案名稱的檔案名稱。

    如果null 參考 (未執行任何動作 於 Visual Basic 中)或空字串傳遞到此參數,通訊協定伺服器必須傳回空字串。

  • progId
    類型:System.String

    指定的 ProgID 用來建立檔案的應用程式。

    如果此參數值是null 參考 (未執行任何動作 於 Visual Basic 中)或空字串,通訊協定伺服器必須提供根據指定的fileName圖像檔案的名稱。

傳回值

類型:Microsoft.SharePoint.Client.ClientResult<String>
傳回代表用來代表指定的檔案的圖示圖像檔案的名稱ClientResult<T>執行個體。

請參閱

參照

Web 類別

Web 成員

Microsoft.SharePoint.Client 命名空間