Click or drag to resize
AkCommonQueryReplace Method (ListString, ListString, String, Object, Boolean)
替换查询字符串中若干键值, 并返回新字符串(不含 "?" 首字符)。

如果要替换的键并不存在, 则添加进去。

Namespace: Appkit.Common
Assembly: Appkit (in Appkit.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C#
public static string QueryReplace(
	List<string> keys,
	List<string> values,
	string[] replaceKeys,
	Object[] replaceValues,
	bool encode
)

Parameters

keys
Type: System.Collections.GenericListString
原始键名称集合。
values
Type: System.Collections.GenericListString
原始键值集合。
replaceKeys
Type: SystemString
键名称集合。
replaceValues
Type: SystemObject
键值集合。
encode
Type: SystemBoolean
是否编码。

Return Value

Type: String
替换处理后的新字符串。
See Also