'Declaration
Public Overloads Shared Function ReplaceString( _ ByVal stringToSearch As String, _ ByVal oldValue As String, _ ByVal newValue As String, _ ByRef result As String, _ Optional ByVal comparison As StringComparison _ ) As Boolean
public static bool ReplaceString( string stringToSearch, string oldValue, string newValue, out string result, StringComparison comparison )
public: static bool ReplaceString( String^ stringToSearch, String^ oldValue, String^ newValue, [Out] String^ result, StringComparison comparison )
Parameters
- stringToSearch
- The string to search
- oldValue
- The string to search for
- newValue
- The replacement string
- result
- The resulting string
- comparison
- The comparison type to use
Return Value
true if any replacements were made, false otherwise