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, converting special characters to quoted UTF-8 format.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function UrlEncode ( _
str As String _
) As String
'Usage
Dim str As String
Dim returnValue As String
returnValue = SPEncode.UrlEncode(str)
public static string UrlEncode(
string str
)
Parameters
str
Type: System.StringThe string to encode.
Return value
Type: System.String
The encoded string.
Remarks
The UrlEncode method converts, for example, "https://msdn.microsoft.com" to "http%3A%2F%2Fmsdn%2Emicrosoft%2Ecom".