根据设备功能为 utf-8 或 Unicode 编码指定的查询字符串 (键/值对)。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function UrlKeyValueEncode ( _
str As String _
) As String
用法
Dim str As String
Dim returnValue As String
returnValue = SPMobileUtility.UrlKeyValueEncode(str)
public static string UrlKeyValueEncode(
string str
)
参数
str
类型:System.String要进行编码的键/值对。
返回值
类型:System.String
为 utf-8 或 Unicode 编码的键/值对。
备注
如果设备功能指定 Unicode,则使用 Unicode。在所有其他情况下,则使用 utf-8。