Compartir a través de


String.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

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.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 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

See Also

Reference