Replace Method

String.Replace Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a new string in which all occurrences of a specified Unicode character or String in the current string are replaced with another specified Unicode 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.

  NameDescription
Public method Replace(Char, Char) Returns a new string in which all occurrences of a specified Unicode character in the current string are replaced with another specified Unicode character.
Public method Replace(String, String) Returns a new string in which all occurrences of a specified string in the current string are replaced with another specified string.
Top

Show:
© 2016 Microsoft