Share via


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

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.

See also

Reference

SPMobileUtility class

SPMobileUtility members

Microsoft.SharePoint.Utilities namespace