StringSegment.Trim 方法

定义

删除所有前导空格和尾随空格。

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

返回

StringSegment

剪裁后的 StringSegment

适用于