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

Gets the position of the last occurrence of the specified character in this string.

Overload List

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

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

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

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

Gets the position of the last occurrence of the specified character in this string.

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

Returns the index of the last occurrence of the specified character in this string.

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

Returns the index of the last occurrence of the string in the current instance.

[Visual Basic] Overloads Public Function LastIndexOf(String) As Integer
[C#] public int LastIndexOf(String);
[C++] public: int LastIndexOf(String*);
[JScript] public function LastIndexOf(String) : int;

Returns the index of the last occurrence of the string in the current instance.

[Visual Basic] Overloads Public Function LastIndexOf(String, Integer, Integer) As Integer
[C#] public int LastIndexOf(String, int, int);
[C++] public: int LastIndexOf(String*, int, int);
[JScript] public function LastIndexOf(String, int, int) : int;

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

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

Returns the index of the last occurrence of the string in the current instance.

[Visual Basic] Overloads Public Function LastIndexOf(String, Integer) As Integer
[C#] public int LastIndexOf(String, int);
[C++] public: int LastIndexOf(String*, int);
[JScript] public function LastIndexOf(String, int) : int;

Gets the position of the last occurrence of the specified character in this string.

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

See Also

String Class | String Members | System Namespace