Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Encodes the specified string and writes it in quotation marks 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 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 WriteUrlEncodeAsUrlWithQuote ( _
response As HttpResponse, _
str As String, _
quoteChar As Char _
)
'Usage
Dim response As HttpResponse
Dim str As String
Dim quoteChar As CharSPEncode.WriteUrlEncodeAsUrlWithQuote(response, _
str, quoteChar)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static void WriteUrlEncodeAsUrlWithQuote(
HttpResponse response,
string str,
char quoteChar
)
Parameters
response
Type: System.Web.HttpResponseThe System.HttpResponse object for the current HTTP request.
str
Type: System.StringThe string to encode as a URL.
quoteChar
Type: System.CharA System.Char object that specifies the character to use for quotation marks.
Remarks
Unlike the WriteUrlEncode method, the UrlEncodeAsUrl method does not encode the forward slash ("/").