This documentation is archived and is not being maintained.

StringBuilder.Replace Method

Replaces all occurrences of a specified character or string in this instance with another specified character or string.

Name Description
StringBuilder.Replace (Char, Char) Replaces all occurrences of a specified character in this instance with another specified character.

Supported by the .NET Compact Framework.

StringBuilder.Replace (String, String) Replaces all occurrences of a specified string in this instance with another specified string.

Supported by the .NET Compact Framework.

StringBuilder.Replace (Char, Char, Int32, Int32) Replaces, within a substring of this instance, all occurrences of a specified character with another specified character.

Supported by the .NET Compact Framework.

StringBuilder.Replace (String, String, Int32, Int32) Replaces, within a substring of this instance, all occurrences of a specified string with another specified string.

Supported by the .NET Compact Framework.

Show: