Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

StringBuilder.Replace Method

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.

  Name Description
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Replace(Char, Char) Replaces all occurrences of a specified character in this instance with another specified character.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Replace(String, String) Replaces all occurrences of a specified string in this instance with another specified string.
Public method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported 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

Community Additions

ADD
Show:
© 2015 Microsoft