Edit

Share via


ValueString.TrimStart Method

Definition

Overloads

TrimStart()

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

TrimStart(Char)

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

TrimStart(ReadOnlySpan<Char>)

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

TrimStart()

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

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

Returns

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

Applies to

TrimStart(Char)

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

public Microsoft.Windows.EventTracing.ValueString TrimStart (char trimChar);
member this.TrimStart : char -> Microsoft.Windows.EventTracing.ValueString
Public Function TrimStart (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 start of the current string. If no characters can be trimmed from the current string, the method returns the current string unchanged.

Applies to

TrimStart(ReadOnlySpan<Char>)

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

public Microsoft.Windows.EventTracing.ValueString TrimStart (ReadOnlySpan<char> trimChars);
member this.TrimStart : ReadOnlySpan<char> -> Microsoft.Windows.EventTracing.ValueString
Public Function TrimStart (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 start 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