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.LastIndexOf (Char[])

Returns the index of the last occurrence of any character in the character array of the current instance.

[Visual Basic]
Overloads Public Function LastIndexOf( _
   ByVal value() As Char _
) As Integer
[C#]
public int LastIndexOf(
   char[] value
);
[C++]
public: int LastIndexOf(
   __wchar_t* value[]
);
[JScript]
public function LastIndexOf(
   value : Char[]
) : int;

Parameters

value
The character array containing all of the characters to search for.

Return Value

Value Condition
The index in the string If the charater array is found.
-1 If the charater array is not found.

Exceptions

Exception Type Condition
ArgumentNullException If the charater array is null.

Remarks

The LastIndexOf method returns the position of the last instance of the specified character array in the string. This string is traversed backwards from right to left. The search is case-sensitive.

See Also

String Class | String Members | System Namespace | String.LastIndexOf Overload List | Char | Int32 | Array