JHRequest.GetServerVariable Method (String, String)

DCSoft.DBUtilityGeneric

JHRequestGetServerVariable Method (String, String)
获取 Web 服务器变量集合中的特定项,已去除首尾空格,如果获取为 null,则返回默认值 defaultValue

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static string GetServerVariable(
	string name,
	string defaultValue
)

Parameters

name
Type: SystemString
变量名
defaultValue
Type: SystemString
获取失败的替代值

Return Value

Type: String
Web 服务器变量集合中的特定项
See Also