NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

String.TrimEnd

Removes a string of characters from the end of this string.

[Visual Basic]
Public Function TrimEnd( _
   ByVal trimChars() As Char _
) As String
[C#]
public string TrimEnd(
   char[] trimChars
);
[C++]
public: String* TrimEnd(
   __wchar_t* trimChars[]
);
[JScript]
public function TrimEnd(
   trimChars : Char[]
) : String;

Parameters

trimChars
A set of characters removed from the end of this string.

Return Value

Returns the substring of characters remaining after the removal of characters from the end of this string.

Remarks

The TrimEnd method begins with the last character in this string and continues to remove characters until it finds a character that is not in the specified array.

As a special case, white space can be removed from the end of the string by passing null as the character array. White space is defined by WhitespaceChars.

The trimChars parameter can be null to indicate that white space should be removed from the end of the string.

See Also

String Class | String Members | System Namespace | Char