다음을 통해 공유


SPEncode.WriteUrlEncode Method

Encodes the specified string, converting special characters to quoted UTF-8 format, and writes the string to the HTTP output content stream.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)> _
Public Shared Sub WriteUrlEncode ( _
    response As HttpResponse, _
    str As String _
)
'Usage
Dim response As HttpResponse
Dim str As StringSPEncode.WriteUrlEncode(response, str)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static void WriteUrlEncode(
    HttpResponse response,
    string str
)

Parameters

Remarks

The WriteUrlEncode method converts "https://msdn.microsoft.com" to "http%3A%2F%2Fmsdn%2Emicrosoft%2Ecom".

See Also

Reference

SPEncode Class

SPEncode Members

Microsoft.SharePoint.Utilities Namespace