Utf8.TryWriteInterpolatedStringHandler.AppendFormatted Method
Definition
Important
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.
Overloads
AppendFormatted(ReadOnlySpan<Byte>) |
Writes the specified span of UTF-8 bytes to the handler. |
AppendFormatted(ReadOnlySpan<Char>) |
Writes the specified character span to the handler. |
AppendFormatted(String) |
Writes the specified value to the handler. |
AppendFormatted(Object, Int32, String) |
Writes the specified value to the handler. |
AppendFormatted(ReadOnlySpan<Byte>, Int32, String) |
Writes the specified span of UTF-8 bytes to the handler. |
AppendFormatted(ReadOnlySpan<Char>, Int32, String) |
Writes the specified string of chars to the handler. |
AppendFormatted(String, Int32, String) |
Writes the specified value to the handler. |
AppendFormatted<T>(T) |
Writes the specified value to the handler. |
AppendFormatted<T>(T, Int32) |
Writes the specified value to the handler. |
AppendFormatted<T>(T, String) |
Writes the specified value to the handler. |
AppendFormatted<T>(T, Int32, String) |
Writes the specified value to the handler. |
AppendFormatted(ReadOnlySpan<Byte>)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified span of UTF-8 bytes to the handler.
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
Parameters
- utf8Value
- ReadOnlySpan<Byte>
The span to write.
Returns
Applies to
AppendFormatted(ReadOnlySpan<Char>)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified character span to the handler.
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
Parameters
- value
- ReadOnlySpan<Char>
The span to write.
Returns
Applies to
AppendFormatted(String)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified value to the handler.
public:
bool AppendFormatted(System::String ^ value);
public bool AppendFormatted (string? value);
member this.AppendFormatted : string -> bool
Public Function AppendFormatted (value As String) As Boolean
Parameters
- value
- String
The value to write.
Returns
Applies to
AppendFormatted(Object, Int32, String)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified value to the handler.
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
Parameters
- value
- Object
The value to write.
- alignment
- Int32
Minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.
- format
- String
The format string.
Returns
Applies to
AppendFormatted(ReadOnlySpan<Byte>, Int32, String)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified span of UTF-8 bytes to the handler.
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
Parameters
- utf8Value
- ReadOnlySpan<Byte>
The span to write.
- alignment
- Int32
Minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.
- format
- String
The format string.
Returns
Applies to
AppendFormatted(ReadOnlySpan<Char>, Int32, String)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified string of chars to the handler.
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
Parameters
- value
- ReadOnlySpan<Char>
The span to write.
- alignment
- Int32
Minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.
- format
- String
The format string.
Returns
Applies to
AppendFormatted(String, Int32, String)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified value to the handler.
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
Parameters
- value
- String
The value to write.
- alignment
- Int32
Minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.
- format
- String
The format string.
Returns
Applies to
AppendFormatted<T>(T)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified value to the handler.
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
Type Parameters
- T
The type of the value to write.
Parameters
- value
- T
The value to write.
Returns
Applies to
AppendFormatted<T>(T, Int32)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified value to the handler.
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
Type Parameters
- T
The type of the value to write.
Parameters
- value
- T
The value to write.
- alignment
- Int32
Minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.
Returns
Applies to
AppendFormatted<T>(T, String)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified value to the handler.
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
Type Parameters
- T
The type of the value to write.
Parameters
- value
- T
The value to write.
- format
- String
The format string.
Returns
Applies to
AppendFormatted<T>(T, Int32, String)
- Source:
- Utf8.cs
- Source:
- Utf8.cs
Writes the specified value to the handler.
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
Type Parameters
- T
The type of the value to write.
Parameters
- value
- T
The value to write.
- alignment
- Int32
Minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.
- format
- String
The format string.