Byte.TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) 메서드
정의
현재 8비트의 부호 없는 정수 인스턴스의 값 형식을 제공된 문자 범위로 지정하려고 시도합니다.Tries to format the value of the current 8-bit unsigned integer instance into the provided span of characters.
public bool TryFormat (Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = default);
public bool TryFormat (Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider provider = default);
member this.TryFormat : Span<char> * int * ReadOnlySpan<char> * IFormatProvider -> bool
Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer, Optional format As ReadOnlySpan(Of Char) = Nothing, Optional provider As IFormatProvider = Nothing) As Boolean
매개 변수
이 메서드가 반환될 경우, 이 인스턴스의 값이 문자 범위 형식으로 지정됩니다.When this method returns, this instance's value formatted as a span of characters.
- charsWritten
- Int32
이 메서드가 반환될 경우 destination
에 기록된 문자 수입니다.When this method returns, the number of characters that were written in destination
.
- format
- ReadOnlySpan<Char>
destination
에 허용되는 형식을 정의하는 표준 또는 사용자 지정 형식 문자열을 나타내는 문자를 포함하는 범위입니다.A span containing the charactes that represent a standard or custom format string that defines the acceptable format for destination
.
- provider
- IFormatProvider
destination
의 문화권별 형식 정보를 제공하는 선택적 개체입니다.An optional object that supplies culture-specific formatting information for destination
.
반환
형식 지정에 성공했으면 true
이고, 실패했으면 false
입니다.true
if the formatting was successful; otherwise, false
.