共用方式為


SPHttpUtility.UrlEncodeFilenameForHttpHeader method

將編碼在 HTTP 標頭中使用的檔案名稱。

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

Syntax

'宣告
Public Shared Function UrlEncodeFilenameForHttpHeader ( _
    fileName As String _
) As String
'用途
Dim fileName As String
Dim returnValue As String

returnValue = SPHttpUtility.UrlEncodeFilenameForHttpHeader(fileName)
public static string UrlEncodeFilenameForHttpHeader(
    string fileName
)

參數

傳回值

Type: System.String
傳回編碼的檔案名稱。

請參閱

參照

SPHttpUtility class

SPHttpUtility members

Microsoft.SharePoint.Utilities namespace