语言

RequestUri.AppendPath 方法

定义

重载

名称 说明
AppendPath(TimeSpan, String, Boolean)
AppendPath(DateTimeOffset, String, Boolean)
AppendPath(Byte[], String, Boolean)
AppendPath(Single, Boolean)
AppendPath(ReadOnlySpan<Char>, Boolean)

(可选)在不添加路径分隔符的情况下转义并追加 value to Path 。 如果 escape 为 true,将转义路径段和其他任何字符,例如“:”将转义为“%3a”。

AppendPath(Int64, Boolean)
AppendPath(String, Boolean)

(可选)在不添加路径分隔符的情况下转义并追加 value to Path 。 如果 escape 为 true,将转义路径段和其他任何字符,例如“:”将转义为“%3a”。

AppendPath(Guid, Boolean)
AppendPath(Double, Boolean)
AppendPath(IEnumerable<String>, Boolean)
AppendPath(Boolean, Boolean)
AppendPath(String)

在不添加路径分隔符的情况下转义并追加 value to Path 。 路径段和任何其他字符都将进行转义,例如“:”将转义为“%3a”。

AppendPath(Int32, Boolean)

AppendPath(TimeSpan, String, Boolean)

public void AppendPath(TimeSpan value, string format, bool escape = true);
member this.AppendPath : TimeSpan * string * bool -> unit
Public Sub AppendPath (value As TimeSpan, format As String, Optional escape As Boolean = true)

参数

value
TimeSpan
format
String
escape
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)

参数

format
String
escape
Boolean

适用于

AppendPath(Byte[], String, Boolean)

public void AppendPath(byte[] value, string format, bool escape = true);
member this.AppendPath : byte[] * string * bool -> unit
Public Sub AppendPath (value As Byte(), format As String, Optional escape As Boolean = true)

参数

value
Byte[]
format
String
escape
Boolean

适用于

AppendPath(Single, Boolean)

public void AppendPath(float value, bool escape = true);
member this.AppendPath : single * bool -> unit
Public Sub AppendPath (value As Single, Optional escape As Boolean = true)

参数

value
Single
escape
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(Int64, Boolean)

public void AppendPath(long value, bool escape = true);
member this.AppendPath : int64 * bool -> unit
Public Sub AppendPath (value As Long, Optional escape As Boolean = true)

参数

value
Int64
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(Guid, Boolean)

public void AppendPath(Guid value, bool escape = true);
member this.AppendPath : Guid * bool -> unit
Public Sub AppendPath (value As Guid, Optional escape As Boolean = true)

参数

value
Guid
escape
Boolean

适用于

AppendPath(Double, Boolean)

public void AppendPath(double value, bool escape = true);
member this.AppendPath : double * bool -> unit
Public Sub AppendPath (value As Double, Optional escape As Boolean = true)

参数

value
Double
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)

参数

escape
Boolean

适用于

AppendPath(Boolean, Boolean)

public void AppendPath(bool value, bool escape = false);
member this.AppendPath : bool * bool -> unit
Public Sub AppendPath (value As Boolean, Optional escape As Boolean = false)

参数

value
Boolean
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

要转义和追加的值。

适用于

AppendPath(Int32, Boolean)

public void AppendPath(int value, bool escape = true);
member this.AppendPath : int * bool -> unit
Public Sub AppendPath (value As Integer, Optional escape As Boolean = true)

参数

value
Int32
escape
Boolean

适用于