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
)
參數
fileName
Type: System.String要編碼的檔案名稱。
傳回值
Type: System.String
傳回編碼的檔案名稱。