PathString.Add 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Add(PathString) |
将两个 PathString 实例添加到组合的 PathString 值中。 |
| Add(QueryString) |
将 PathString 和 QueryString 合并到联接的 URI 格式字符串值。 |
Add(PathString)
- Source:
- PathString.cs
- Source:
- PathString.cs
- Source:
- PathString.cs
将两个 PathString 实例添加到组合的 PathString 值中。
public:
Microsoft::AspNetCore::Http::PathString Add(Microsoft::AspNetCore::Http::PathString other);
public Microsoft.AspNetCore.Http.PathString Add(Microsoft.AspNetCore.Http.PathString other);
member this.Add : Microsoft.AspNetCore.Http.PathString -> Microsoft.AspNetCore.Http.PathString
Public Function Add (other As PathString) As PathString
参数
- other
- PathString
返回
组合的 PathString 值
注解
如果以 PathString 分隔符(“/”或“\”)结尾,并且 other 以同一分隔符开头,则剪裁其中一个分隔符以避免复制边界。 混合分隔符(例如尾随“/”后跟前导“\”)将保留 as-is,以便原始字符不会以无提示方式规范化。
适用于
Add(QueryString)
- Source:
- PathString.cs
- Source:
- PathString.cs
- Source:
- PathString.cs
将 PathString 和 QueryString 合并到联接的 URI 格式字符串值。
public:
System::String ^ Add(Microsoft::AspNetCore::Http::QueryString other);
public string Add(Microsoft.AspNetCore.Http.QueryString other);
member this.Add : Microsoft.AspNetCore.Http.QueryString -> string
Public Function Add (other As QueryString) As String
参数
- other
- QueryString
返回
联接的 URI 格式字符串值