Partager via


StringBuilder.Replace Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Replace(Char, Char) Replaces all occurrences of a specified character in this instance with another specified character.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Replace(String, String) Replaces all occurrences of a specified string in this instance with another specified string.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Replace(Char, Char, Int32, Int32) Replaces, within a substring of this instance, all occurrences of a specified character with another specified character.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Replace(String, String, Int32, Int32) Replaces, within a substring of this instance, all occurrences of a specified string with another specified string.

Top