Gets the last index where the specified character is found in the string using flags.
[Visual Basic] Overloads Overridable Public Function LastIndexOf( _ ByVal source As String, _ ByVal value As Char, _ ByVal options As CompareOptions _ ) As Integer [C#] public virtual int LastIndexOf( string source, char value, CompareOptions options ); [C++] public: virtual int LastIndexOf( String* source, __wchar_t value, CompareOptions options ); [JScript] public function LastIndexOf( source : String, value : Char, options : CompareOptions ) : int;
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. |
Exception Type | Condition |
---|---|
ArgumentException | is thrown if the value argument is null. |
The search is conducted through the entire string.
CompareInfo Class | CompareInfo Members | System.Globalization Namespace | CompareInfo.LastIndexOf Overload List