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 query string (key/value pair) as either UTF-8 or Unicode depending on the device capabilities.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function UrlKeyValueEncode ( _
str As String _
) As String
'Usage
Dim str As String
Dim returnValue As String
returnValue = SPMobileUtility.UrlKeyValueEncode(str)
public static string UrlKeyValueEncode(
string str
)
Parameters
str
Type: System.StringThe key/value pair to encode.
Return Value
Type: System.String
The encoded key/value pair as UTF-8 or Unicode.
Remarks
If the device capabilities specify Unicode, Unicode is used. In all other cases, UTF-8 is used.