RequestUri.AppendPath 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| AppendPath(TimeSpan, String, Boolean) | |
| AppendPath(DateTimeOffset, String, Boolean) | |
| AppendPath(Byte[], String, Boolean) | |
| AppendPath(Single, Boolean) | |
| AppendPath(ReadOnlySpan<Char>, Boolean) |
(可选)在不添加路径分隔符的情况下转义并追加 |
| AppendPath(Int64, Boolean) | |
| AppendPath(String, Boolean) |
(可选)在不添加路径分隔符的情况下转义并追加 |
| AppendPath(Guid, Boolean) | |
| AppendPath(Double, Boolean) | |
| AppendPath(IEnumerable<String>, Boolean) | |
| AppendPath(Boolean, Boolean) | |
| AppendPath(String) |
在不添加路径分隔符的情况下转义并追加 |
| AppendPath(Int32, Boolean) |
AppendPath(TimeSpan, String, Boolean)
AppendPath(DateTimeOffset, String, Boolean)
public void AppendPath(DateTimeOffset value, string format, bool escape = true);
member this.AppendPath : DateTimeOffset * string * bool -> unit
Public Sub AppendPath (value As DateTimeOffset, format As String, Optional escape As Boolean = true)
参数
- value
- DateTimeOffset
- format
- String
- escape
- Boolean
适用于
AppendPath(Byte[], String, Boolean)
AppendPath(ReadOnlySpan<Char>, Boolean)
(可选)在不添加路径分隔符的情况下转义并追加 value to Path 。
如果 escape 为 true,将转义路径段和其他任何字符,例如“:”将转义为“%3a”。
public:
virtual void AppendPath(ReadOnlySpan<char> value, bool escape);
public virtual void AppendPath(ReadOnlySpan<char> value, bool escape);
abstract member AppendPath : ReadOnlySpan<char> * bool -> unit
override this.AppendPath : ReadOnlySpan<char> * bool -> unit
Public Overridable Sub AppendPath (value As ReadOnlySpan(Of Char), escape As Boolean)
参数
- value
- ReadOnlySpan<Char>
要选择性地转义和追加的值。
- escape
- Boolean
是否应转义值。
适用于
AppendPath(String, Boolean)
(可选)在不添加路径分隔符的情况下转义并追加 value to Path 。
如果 escape 为 true,将转义路径段和其他任何字符,例如“:”将转义为“%3a”。
public:
virtual void AppendPath(System::String ^ value, bool escape);
public virtual void AppendPath(string value, bool escape);
abstract member AppendPath : string * bool -> unit
override this.AppendPath : string * bool -> unit
Public Overridable Sub AppendPath (value As String, escape As Boolean)
参数
- value
- String
要选择性地转义和追加的值。
- escape
- Boolean
是否应转义值。
适用于
AppendPath(IEnumerable<String>, Boolean)
public void AppendPath(System.Collections.Generic.IEnumerable<string> value, bool escape = true);
member this.AppendPath : seq<string> * bool -> unit
Public Sub AppendPath (value As IEnumerable(Of String), Optional escape As Boolean = true)
参数
- value
- IEnumerable<String>
- escape
- Boolean
适用于
AppendPath(String)
在不添加路径分隔符的情况下转义并追加 value to Path 。
路径段和任何其他字符都将进行转义,例如“:”将转义为“%3a”。
public:
virtual void AppendPath(System::String ^ value);
public virtual void AppendPath(string value);
abstract member AppendPath : string -> unit
override this.AppendPath : string -> unit
Public Overridable Sub AppendPath (value As String)
参数
- value
- String
要转义和追加的值。