Url Info 类
URL解析结果。
Definition
命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public class UrlInfo- Inheritance
- Object UrlInfo
备注
由 ParseUrl(String) 填充,各属性均为可读写的简单数据字段;
默认值为空字符串或空字典,未解析的字段不会为 null。
构造函数
| UrlInfo | 初始化 UrlInfo 类的一个新实例 |
属性
| Fragment | 锚点 ( #reviews ) |
| Host | 主机 ( www.example.com ) |
| LastSegment | 最后一段 |
| OriginalUrl | 原始URL |
| Path | 路径 ( /api/products/123 ) |
| Port | 端口 ( 80 443 ) |
| Query | 查询字符串 ( ?category=books 数字7键那个符号 sort=desc ) |
| QueryParameters | 查询参数 ( category = books sort = desc ) |
| Scheme | 协议 ( http, https ) |