Modifier

Partager via


ValueString.TrimEnd Method

Definition

Overloads

TrimEnd()

Removes all the trailing white-space characters from this string.

TrimEnd(Char)

Remove all trailing occurrences of a specified character from this string.

TrimEnd(ReadOnlySpan<Char>)

Removes all the trailing occurrences of a set of characters from the current string.

TrimEnd()

Removes all the trailing white-space characters from this string.

public Microsoft.Windows.EventTracing.ValueString TrimEnd ();
member this.TrimEnd : unit -> Microsoft.Windows.EventTracing.ValueString
Public Function TrimEnd () As ValueString

Returns

The string that remains after all white-space characters are removed from the end of the current string. If no characters can be trimmed from the current string, the method returns the current string unchanged.

Applies to

TrimEnd(Char)

Remove all trailing occurrences of a specified character from this string.

public Microsoft.Windows.EventTracing.ValueString TrimEnd (char trimChar);
member this.TrimEnd : char -> Microsoft.Windows.EventTracing.ValueString
Public Function TrimEnd (trimChar As Char) As ValueString

Parameters

trimChar
Char

The character to remove.

Returns

The string that remains after all occurrences of the trimChar character are removed from the end of the current string. If no characters can be trimmed from the current string, the method returns the current string unchanged.

Applies to

TrimEnd(ReadOnlySpan<Char>)

Removes all the trailing occurrences of a set of characters from the current string.

public Microsoft.Windows.EventTracing.ValueString TrimEnd (ReadOnlySpan<char> trimChars);
member this.TrimEnd : ReadOnlySpan<char> -> Microsoft.Windows.EventTracing.ValueString
Public Function TrimEnd (trimChars As ReadOnlySpan(Of Char)) As ValueString

Parameters

trimChars
ReadOnlySpan<Char>

The characters to remove.

Returns

The string that remains after all occurrences of trimChars characters are removed from the end of the current string. If trimChars is empty, white-space characters are removed instead. If no characters can be trimmed from the current string, the method returns the current string unchanged.

Applies to