Hunny Software Library Reference

ByteString.StartsWith Method 

Indicates if this instance starts with the specified substring.

[Visual Basic]
Public Function StartsWith( _
   ByVal str As ByteString _
) As Boolean
[C#]
public bool StartsWith(
   ByteString str
);

Parameters

str
ByteString instance to compare to the start of this instance

Return Value

true if this instance starts with str
or if str is empty

Remarks

The comparison is case-sensitive.

Exceptions

Exception TypeCondition
ArgumentNullExceptionstr is null

See Also

ByteString Class | Hunny.Base Namespace