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.TrimStart

Removes characters from the beginning of this string.

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

Parameters

trimChars
A set of characters to be removed from the beginning of the string.

Return Value

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

Remarks

The TrimStart method begins with the first 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 beginning of the string by passing null as the character array. This procedure is case-sensitive.

White space is defined by WhitespaceChars.

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

See Also

String Class | String Members | System Namespace