Simply awesomeThe #1 ASP/ASP.NET Developer Community

StringBuilder.Replace Method

System.Text Namespace   StringBuilder Class


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

Overload List

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

[ VB ] Overloads Public Function Replace ( Char, Char ) As StringBuilder

[ C# ] public StringBuilder Replace ( char, char );

[ C++ ] public: StringBuilder* Replace ( __wchar_t, __wchar_t );

[ JScript ] public function Replace ( Char, Char ) : StringBuilder;

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

[ VB ] Overloads Public Function Replace ( String, String ) As StringBuilder

[ C# ] public StringBuilder Replace ( string, string );

[ C++ ] public: StringBuilder* Replace ( String*, String* );

[ JScript ] public function Replace ( String, String ) : StringBuilder;

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

[ VB ] Overloads Public Function Replace ( Char, Char, Integer, Integer ) As StringBuilder

[ C# ] public StringBuilder Replace ( char, char, int, int );

[ C++ ] public: StringBuilder* Replace ( __wchar_t, __wchar_t, int, int );

[ JScript ] public function Replace ( Char, Char, int, int ) : StringBuilder;

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

[ VB ] Overloads Public Function Replace ( String, String, Integer, Integer ) As StringBuilder

[ C# ] public StringBuilder Replace ( string, string, int, int );

[ C++ ] public: StringBuilder* Replace ( String*, String*, int, int );

[ JScript ] public function Replace ( String, String, int, int ) : StringBuilder;

See Also

StringBuilder Members


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note