JHRequest.GetQueryData(Ttype) Method (String, Ttype)

DCSoft.DBUtilityGeneric

JHRequestGetQueryDataTtype Method (String, Ttype)
获取窗体变量集合中指定键的值,已去除首尾空格

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static Ttype GetQueryData<Ttype>(
	string name,
	Ttype defaultValue
)
where Ttype : IConvertible

Parameters

name
Type: SystemString
要获取的键名称
defaultValue
Type: Ttype
如果获取值为 null,或者转换异常则返回默认值

Type Parameters

Ttype
要返回的数据类型,如 int, string, DateTime 等

Return Value

Type: Ttype
返回指定键的值
See Also