SPMobileUtility.UrlKeyValueEncode method
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)
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.