Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StringBuilder.Replace Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Text
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodReplace(Char, Char)

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

System_CAPS_pubmethodReplace(Char, Char, Int32, Int32)

Replaces, within a substring of this instance, all occurrences of a specified character with another specified character.

System_CAPS_pubmethodReplace(String, String)

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

System_CAPS_pubmethodReplace(String, String, Int32, Int32)

Replaces, within a substring of this instance, all occurrences of a specified string with another specified string.

Return to top
Show:
© 2018 Microsoft