次の方法で共有


SPHttpUtility.UrlEncodeFilenameForHttpHeader method

Encodes a file name for use in an HTTP header.

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

Syntax

'Declaration
Public Shared Function UrlEncodeFilenameForHttpHeader ( _
    fileName As String _
) As String
'Usage
Dim fileName As String
Dim returnValue As String

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

Parameters

Return value

Type: System.String
Returns the encoded file name.

See also

Reference

SPHttpUtility class

SPHttpUtility members

Microsoft.SharePoint.Utilities namespace