HttpUtility.UrlPathEncode Method (String, Boolean, TextWriter)

Encodes the specified path part of a URL for HTTP transmission and appends it to the specified output stream.

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

Syntax

'Declaration
Public Shared Sub UrlPathEncode ( _
    urlToEncode As String, _
    allowHashParameter As Boolean, _
    output As TextWriter _
)
'Usage
Dim urlToEncode As String
Dim allowHashParameter As Boolean
Dim output As TextWriterHttpUtility.UrlPathEncode(urlToEncode, _
    allowHashParameter, output)
public static void UrlPathEncode(
    string urlToEncode,
    bool allowHashParameter,
    TextWriter output
)

Parameters

  • urlToEncode
    Type: System.String

    A string that contains the path.

  • allowHashParameter
    Type: System.Boolean

    true to specify that the decode operation can include a hash parameter; otherwise, false.

Remarks

This method is a wrapper on the UrlPathEncode(String, Boolean, Boolean, TextWriter) method with the encodeUnicodeCharacters parameter set to false.

See Also

Reference

HttpUtility Class

HttpUtility Members

UrlPathEncode Overload

Microsoft.SharePoint.Client.Utilities Namespace