Compartilhar via


StringSegment.Trim Method

Definition

Removes all leading and trailing whitespaces.

public:
 Microsoft::Extensions::Primitives::StringSegment Trim();
public Microsoft.Extensions.Primitives.StringSegment Trim ();
member this.Trim : unit -> Microsoft.Extensions.Primitives.StringSegment
Public Function Trim () As StringSegment

Returns

The trimmed StringSegment.

Applies to