adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / StringUtil Class / ReplaceString Method / ReplaceString(String,String,String,StringComparison) Method
The string to search
The string to search for
The replacement string
The comparison type to use


In This Topic
    ReplaceString(String,String,String,StringComparison) Method
    In This Topic
    Performs a string replacement using the specified comparison operator (case-insensitive by default).
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Overloads Shared Function ReplaceString( _
       ByVal stringToSearch As String, _
       ByVal oldValue As String, _
       ByVal newValue As String, _
       Optional ByVal comparison As StringComparison _
    ) As String

    Parameters

    stringToSearch
    The string to search
    oldValue
    The string to search for
    newValue
    The replacement string
    comparison
    The comparison type to use

    Return Value

    The string with replacements made
    See Also