Bridge

String..::..LastIndexOf Method (String)

Reports the zero-based index position of the last occurrence of a specified string within this instance.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


public int LastIndexOf(
	string subString
)
Public Function LastIndexOf ( _
	subString As String _
) As Integer
public:
int^ LastIndexOf(
	String^ subString
)

Parameters

subString
Type: System..::..String

Return Value

The zero-based starting index position of value if that string is found, or -1 if it is not. If value is Empty, the return value is the last index position in this instance.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionvalue is null.