Format(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to format the value of the current short number 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
abstract member TryFormat : Span<char> * int * ReadOnlySpan<char> * IFormatProvider -> bool override 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
The span in which to write this instance's value formatted as a span of characters.
When this method returns, contains the number of characters that were written in
A span containing the characters that represent a standard or custom format string that defines the acceptable format for
An optional object that supplies culture-specific formatting information for
true if the formatting was successful; otherwise,