Hunny Software Library Reference

ByteString.Replace Method (ByteString, ByteString)

Replaces all occurrences of a specified ByteString with another specified ByteString

[Visual Basic]
Overloads Public Function Replace( _
   ByVal oldStr As ByteString, _
   ByVal newStr As ByteString _
) As ByteString
[C#]
public ByteString Replace(
   ByteString oldStr,
   ByteString newStr
);

Parameters

oldStr
ByteString to be replaced
newStr
ByteString to replace all occurrences of oldStr

Return Value

new ByteString with all occurrences of oldStr replaced with newStr

Remarks

If newStr is a null reference, oldStr is removed

Exceptions

Exception TypeCondition
ArgumentNullExceptionoldStr is null

See Also

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