다음을 통해 공유


Utf8.TryWrite 메서드

정의

오버로드

TryWrite(Span<Byte>, Utf8+TryWriteInterpolatedStringHandler, Int32)

지정된 보간된 문자열을 UTF-8 바이트 범위에 씁니다.

TryWrite(Span<Byte>, IFormatProvider, Utf8+TryWriteInterpolatedStringHandler, Int32)

지정된 보간된 문자열을 UTF-8 바이트 범위에 씁니다.

TryWrite(Span<Byte>, Utf8+TryWriteInterpolatedStringHandler, Int32)

Source:
Utf8.cs
Source:
Utf8.cs

지정된 보간된 문자열을 UTF-8 바이트 범위에 씁니다.

public:
 static bool TryWrite(Span<System::Byte> destination, System::Text::Unicode::Utf8::TryWriteInterpolatedStringHandler % handler, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryWrite (Span<byte> destination, ref System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler handler, out int bytesWritten);
static member TryWrite : Span<byte> * TryWriteInterpolatedStringHandler * int -> bool
Public Shared Function TryWrite (destination As Span(Of Byte), ByRef handler As Utf8.TryWriteInterpolatedStringHandler, ByRef bytesWritten As Integer) As Boolean

매개 변수

destination
Span<Byte>

보간된 문자열의 서식을 지정해야 하는 범위입니다.

handler
Utf8.TryWriteInterpolatedStringHandler

보간된 문자열입니다.

bytesWritten
Int32

이 메서드가 반환되면 범위에 기록된 문자 수가 포함됩니다.

반환

true 보간된 전체 문자열의 서식을 성공적으로 지정할 수 있으면 이고, 그렇지 않으면 입니다 false.

적용 대상

TryWrite(Span<Byte>, IFormatProvider, Utf8+TryWriteInterpolatedStringHandler, Int32)

Source:
Utf8.cs
Source:
Utf8.cs

지정된 보간된 문자열을 UTF-8 바이트 범위에 씁니다.

public:
 static bool TryWrite(Span<System::Byte> destination, IFormatProvider ^ provider, System::Text::Unicode::Utf8::TryWriteInterpolatedStringHandler % handler, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryWrite (Span<byte> destination, IFormatProvider? provider, ref System.Text.Unicode.Utf8.TryWriteInterpolatedStringHandler handler, out int bytesWritten);
static member TryWrite : Span<byte> * IFormatProvider * TryWriteInterpolatedStringHandler * int -> bool
Public Shared Function TryWrite (destination As Span(Of Byte), provider As IFormatProvider, ByRef handler As Utf8.TryWriteInterpolatedStringHandler, ByRef bytesWritten As Integer) As Boolean

매개 변수

destination
Span<Byte>

보간된 문자열의 서식을 지정해야 하는 범위입니다.

provider
IFormatProvider

문화권별 형식 정보를 제공하는 개체입니다.

handler
Utf8.TryWriteInterpolatedStringHandler

보간된 문자열입니다.

bytesWritten
Int32

이 메서드가 반환되면 범위에 기록된 문자 수가 포함됩니다.

반환

true 보간된 전체 문자열의 서식을 성공적으로 지정할 수 있으면 이고, 그렇지 않으면 입니다 false.

적용 대상