Share via


SPEncode.WriteUrlEncodeAsUrl Method

Encodes the specified string and writes it to the HTTP output content stream, converting special characters to quoted UTF-8 format, but assumes that the string is a path component of a Universal Resource Locator (URL).

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

Syntax

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

Parameters

Remarks

Unlike the WriteUrlEncode method, the UrlEncodeAsUrl method does not encode the forward slash ("/").

See Also

Reference

SPEncode Class

SPEncode Members

Microsoft.SharePoint.Utilities Namespace