NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StringBuilder.Replace (Char, Char)

A StringBuilder with all instances of a specified character replaced with a new character.

[Visual Basic]
Overloads Public Function Replace( _
   ByVal oldChar As Char, _
   ByVal newChar As Char _
) As StringBuilder
[C#]
public StringBuilder Replace(
   char oldChar,
   char newChar
);
[C++]
public: StringBuilder* Replace(
   __wchar_t oldChar,
   __wchar_t newChar
);
[JScript]
public function Replace(
   oldChar : Char,
   newChar : Char
) : StringBuilder;

Parameters

oldChar
The character to replace.
newChar
The character with which to replace oldChar.

Return Value

A StringBuilder with oldChar replaced with newChar.

Remarks

A StringBuilder with all instances of oldChar replaced with newChar. The size of the StringBuilder is unchanged because we're only replacing characters. This method is case-sensitive.

See Also

StringBuilder Class | StringBuilder Members | System.Text Namespace | StringBuilder.Replace Overload List