IRequest.GetQueryBool method

获取访问地址中的指定查询字符串并转换为布尔值。

  1. public bool GetQueryBool(string name, bool defaultValue = false)
parameter description
name 查询字符串名称。
defaultValue 访问地址中不包含查询字符串或者无法转换为布尔值时的返回值。

Return Value

如果包含指定的查询字符串,则返回转换为布尔值后的的值;否则返回 defaultValue。

See Also