Hunny Software Library Reference

ByteString.Substring Method (Int32)

Gets a substring from this instance.

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

Parameters

startIndex
The starting position of a substring in this instance

Return Value

A new ByteString equivalent to the substring that begins at startIndex in this instance.
-or-
Empty if startIndex is equal to the length of this instance.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionstartIndex < 0
-or-
startIndex > Length

See Also

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