IRequest.GetQueryInt method
获取访问地址中的指定查询字符串并转换为整数。
public int GetQueryInt(string name, int defaultValue = 0)
parameter | description |
---|---|
name | 查询字符串名称。 |
defaultValue | 访问地址中不包含查询字符串或者无法转换为整数时的返回值。 |
Return Value
如果包含指定的查询字符串,则返回转换为整数后的的值;否则返回 defaultValue。
See Also
- interface IRequest
- namespace SiteServer.Plugin