Utf8.TryWriteInterpolatedStringHandler 构造函数

定义

重载

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, Boolean)

创建用于将内插字符串写入 UTF-8 Span<T>的处理程序。

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, IFormatProvider, Boolean)

创建用于将内插字符串写入 UTF-8 Span<T>的处理程序。

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, Boolean)

Source:
Utf8.cs
Source:
Utf8.cs

创建用于将内插字符串写入 UTF-8 Span<T>的处理程序。

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<System::Byte> destination, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<byte> destination, out bool shouldAppend);
new System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler : int * int * Span<byte> * bool -> System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Byte), ByRef shouldAppend As Boolean)

参数

literalLength
Int32

内插字符串中内插表达式之外的常量字符数。

formattedCount
Int32

内插字符串中的内插表达式数。

destination
Span<Byte>

目标缓冲区。

shouldAppend
Boolean

此方法返回时,包含 true 是否目标可能足够长以支持格式设置,或者 false 如果不是。

注解

这只能由编译器生成的代码调用。 参数不进行验证,否则它们对于打算直接使用的成员而言。

适用于

Utf8.TryWriteInterpolatedStringHandler(Int32, Int32, Span<Byte>, IFormatProvider, Boolean)

Source:
Utf8.cs
Source:
Utf8.cs

创建用于将内插字符串写入 UTF-8 Span<T>的处理程序。

public:
 TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span<System::Byte> destination, IFormatProvider ^ provider, [Runtime::InteropServices::Out] bool % shouldAppend);
public TryWriteInterpolatedStringHandler (int literalLength, int formattedCount, Span<byte> destination, IFormatProvider? provider, out bool shouldAppend);
new System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler : int * int * Span<byte> * IFormatProvider * bool -> System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, destination As Span(Of Byte), provider As IFormatProvider, ByRef shouldAppend As Boolean)

参数

literalLength
Int32

内插字符串中内插表达式之外的常量字符数。

formattedCount
Int32

内插字符串中的内插表达式数。

destination
Span<Byte>

目标缓冲区。

provider
IFormatProvider

一个提供区域性特定的格式设置信息的对象。

shouldAppend
Boolean

此方法返回时,包含 true 是否目标可能足够长以支持格式设置,或者 false 如果不是。

注解

这只能由编译器生成的代码调用。 参数不进行验证,否则它们对于打算直接使用的成员而言。

适用于