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.StringA string that contains the path.
allowHashParameter
Type: System.Booleantrue to specify that the decode operation can include a hash parameter; otherwise, false.
output
Type: System.IO.TextWriterA TextWriter object that represents the output stream to which to add the encoded path.
Remarks
This method is a wrapper on the UrlPathEncode(String, Boolean, Boolean, TextWriter) method with the encodeUnicodeCharacters parameter set to false.