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!

CompareInfo.LastIndexOf (String, Char)

Gets the last index where the specified character is found in the string.

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

Parameters

source
The string to search.
value
The character to search for within the string.

Return Value

Value Meaning
Last index The last index of the charactervalue in thestring.
-1 The specified value is not found.
0 Thevalue argument is an empty string.

Exceptions

Exception Type Condition
ArgumentException is thrown if the value argument is null.

See Also

CompareInfo Class | CompareInfo Members | System.Globalization Namespace | CompareInfo.LastIndexOf Overload List