Hunny Software Library Reference

ByteString.LastIndexOf Method (ByteString)

Reports the index of the last occurrence of the specified ByteString in this instance.

[Visual Basic]
Overloads Public Function LastIndexOf( _
   ByVal str As ByteString _
) As Integer
[C#]
public int LastIndexOf(
   ByteString str
);

Parameters

str
the ByteString to seek

Return Value

position in this instance where str was found;
or 0 if str is empty;
or -1 if str is not found

Remarks

The search begins at the last byte position of this instance and continues until the first byte position.

The search is case-sensitive.

Exceptions

Exception TypeCondition
ArgumentNullExceptionstr is null

See Also

ByteString Class | Hunny.Base Namespace | ByteString.LastIndexOf Overload List