Rediger

Del via


MemoryExtensions.TryWriteInterpolatedStringHandler.AppendFormatted Method

Definition

Overloads

AppendFormatted(ReadOnlySpan<Char>)

Writes the specified value 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<Char>, Int32, String)

Writes the specified value to the handler.

AppendFormatted(String, Int32, String)

Writes a specified value to the handler using a specified format string.

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 a specified value to the handler using a specified format string.

AppendFormatted<T>(T, Int32, String)

Writes a specified value to the handler using a specified format string.

AppendFormatted(ReadOnlySpan<Char>)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Writes the specified value to the handler.

public:
 bool AppendFormatted(ReadOnlySpan<char> value);
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 value to write.

Returns

false if the operation failed; true otherwise.

Applies to

AppendFormatted(String)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.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

true on success; false otherwise.

Applies to

AppendFormatted(Object, Int32, String)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.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

The minimum number of characters that should be written for this value. A negative value indicates left-aligned, and the required minimum is the absolute value.

format
String

The format string.

Returns

true on success; false otherwise.

Applies to

AppendFormatted(ReadOnlySpan<Char>, Int32, String)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Writes the specified value to the handler.

public bool AppendFormatted (ReadOnlySpan<char> value, int alignment = 0, string? format = default);
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 value to write.

alignment
Int32

>The 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

false if the operation failed; true otherwise.

Applies to

AppendFormatted(String, Int32, String)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Writes a specified value to the handler using a specified format string.

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

The minimum number of characters that should be written for this value. A negative value indicates left-aligned, and the required minimum is the absolute value.

format
String

The format string.

Returns

true on success; false otherwise.

Applies to

AppendFormatted<T>(T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.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

true on success; false otherwise.

Applies to

AppendFormatted<T>(T, Int32)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.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

The minimum number of characters that should be written for this value.A negative value indicates left-aligned, and the required minimum is the absolute value.

Returns

false if the operation failed; true otherwise.

Applies to

AppendFormatted<T>(T, String)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Writes a specified value to the handler using a specified format string.

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

true on success; false otherwise.

Applies to

AppendFormatted<T>(T, Int32, String)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Writes a specified value to the handler using a specified format string.

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

The minimum number of characters that should be written for this value. A negative value indicates left-aligned, and the required minimum is the absolute value.

format
String

The format string.

Returns

true on success; false otherwise.

Applies to