Share via


Utf8.TryWriteInterpolatedStringHandler.AppendFormatted 方法

定义

重载

AppendFormatted(ReadOnlySpan<Byte>)

将指定的 UTF-8 字节范围写入处理程序。

AppendFormatted(ReadOnlySpan<Char>)

将指定的字符范围写入处理程序。

AppendFormatted(String)

将指定的值写入处理程序。

AppendFormatted(Object, Int32, String)

将指定的值写入处理程序。

AppendFormatted(ReadOnlySpan<Byte>, Int32, String)

将指定的 UTF-8 字节范围写入处理程序。

AppendFormatted(ReadOnlySpan<Char>, Int32, String)

将指定的字符字符串写入处理程序。

AppendFormatted(String, Int32, String)

将指定的值写入处理程序。

AppendFormatted<T>(T)

将指定的值写入处理程序。

AppendFormatted<T>(T, Int32)

将指定的值写入处理程序。

AppendFormatted<T>(T, String)

将指定的值写入处理程序。

AppendFormatted<T>(T, Int32, String)

将指定的值写入处理程序。

AppendFormatted(ReadOnlySpan<Byte>)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的 UTF-8 字节范围写入处理程序。

public:
 bool AppendFormatted(ReadOnlySpan<System::Byte> utf8Value);
public bool AppendFormatted (scoped ReadOnlySpan<byte> utf8Value);
member this.AppendFormatted : ReadOnlySpan<byte> -> bool
Public Function AppendFormatted (utf8Value As ReadOnlySpan(Of Byte)) As Boolean

参数

utf8Value
ReadOnlySpan<Byte>

要写入的跨度。

返回

适用于

AppendFormatted(ReadOnlySpan<Char>)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的字符范围写入处理程序。

public:
 bool AppendFormatted(ReadOnlySpan<char> value);
public bool AppendFormatted (scoped ReadOnlySpan<char> value);
member this.AppendFormatted : ReadOnlySpan<char> -> bool
Public Function AppendFormatted (value As ReadOnlySpan(Of Char)) As Boolean

参数

value
ReadOnlySpan<Char>

要写入的跨度。

返回

适用于

AppendFormatted(String)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的值写入处理程序。

public:
 bool AppendFormatted(System::String ^ value);
public bool AppendFormatted (string? value);
member this.AppendFormatted : string -> bool
Public Function AppendFormatted (value As String) As Boolean

参数

value
String

要写入的值。

返回

适用于

AppendFormatted(Object, Int32, String)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的值写入处理程序。

public bool AppendFormatted (object? value, int alignment = 0, string? format = default);
member this.AppendFormatted : obj * int * string -> bool
Public Function AppendFormatted (value As Object, Optional alignment As Integer = 0, Optional format As String = Nothing) As Boolean

参数

value
Object

要写入的值。

alignment
Int32

应为此值写入的最小字符数。 如果值为负值,则表示左对齐,所需的最小值为绝对值。

format
String

格式字符串。

返回

适用于

AppendFormatted(ReadOnlySpan<Byte>, Int32, String)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的 UTF-8 字节范围写入处理程序。

public bool AppendFormatted (scoped ReadOnlySpan<byte> utf8Value, int alignment = 0, string? format = default);
member this.AppendFormatted : ReadOnlySpan<byte> * int * string -> bool
Public Function AppendFormatted (utf8Value As ReadOnlySpan(Of Byte), Optional alignment As Integer = 0, Optional format As String = Nothing) As Boolean

参数

utf8Value
ReadOnlySpan<Byte>

要写入的跨度。

alignment
Int32

应为此值写入的最小字符数。 如果值为负值,则表示左对齐,所需的最小值为绝对值。

format
String

格式字符串。

返回

适用于

AppendFormatted(ReadOnlySpan<Char>, Int32, String)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的字符字符串写入处理程序。

public bool AppendFormatted (scoped ReadOnlySpan<char> value, int alignment = 0, string? format = default);
member this.AppendFormatted : ReadOnlySpan<char> * int * string -> bool
Public Function AppendFormatted (value As ReadOnlySpan(Of Char), Optional alignment As Integer = 0, Optional format As String = Nothing) As Boolean

参数

value
ReadOnlySpan<Char>

要写入的跨度。

alignment
Int32

应为此值写入的最小字符数。 如果值为负值,则表示左对齐,所需的最小值为绝对值。

format
String

格式字符串。

返回

适用于

AppendFormatted(String, Int32, String)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的值写入处理程序。

public bool AppendFormatted (string? value, int alignment = 0, string? format = default);
member this.AppendFormatted : string * int * string -> bool
Public Function AppendFormatted (value As String, Optional alignment As Integer = 0, Optional format As String = Nothing) As Boolean

参数

value
String

要写入的值。

alignment
Int32

应为此值写入的最小字符数。 如果值为负值,则表示左对齐,所需的最小值为绝对值。

format
String

格式字符串。

返回

适用于

AppendFormatted<T>(T)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的值写入处理程序。

public:
generic <typename T>
 bool AppendFormatted(T value);
public bool AppendFormatted<T> (T value);
member this.AppendFormatted : 'T -> bool
Public Function AppendFormatted(Of T) (value As T) As Boolean

类型参数

T

要写入的值的类型。

参数

value
T

要写入的值。

返回

适用于

AppendFormatted<T>(T, Int32)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的值写入处理程序。

public:
generic <typename T>
 bool AppendFormatted(T value, int alignment);
public bool AppendFormatted<T> (T value, int alignment);
member this.AppendFormatted : 'T * int -> bool
Public Function AppendFormatted(Of T) (value As T, alignment As Integer) As Boolean

类型参数

T

要写入的值的类型。

参数

value
T

要写入的值。

alignment
Int32

应为此值写入的最小字符数。 如果值为负值,则表示左对齐,所需的最小值为绝对值。

返回

适用于

AppendFormatted<T>(T, String)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的值写入处理程序。

public:
generic <typename T>
 bool AppendFormatted(T value, System::String ^ format);
public bool AppendFormatted<T> (T value, string? format);
member this.AppendFormatted : 'T * string -> bool
Public Function AppendFormatted(Of T) (value As T, format As String) As Boolean

类型参数

T

要写入的值的类型。

参数

value
T

要写入的值。

format
String

格式字符串。

返回

适用于

AppendFormatted<T>(T, Int32, String)

Source:
Utf8.cs
Source:
Utf8.cs

将指定的值写入处理程序。

public:
generic <typename T>
 bool AppendFormatted(T value, int alignment, System::String ^ format);
public bool AppendFormatted<T> (T value, int alignment, string? format);
member this.AppendFormatted : 'T * int * string -> bool
Public Function AppendFormatted(Of T) (value As T, alignment As Integer, format As String) As Boolean

类型参数

T

要写入的值的类型。

参数

value
T

要写入的值。

alignment
Int32

应为此值写入的最小字符数。 如果值为负值,则表示左对齐,所需的最小值为绝对值。

format
String

格式字符串。

返回

适用于