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!

String.Replace

Replaces all instances of a specified character with a new one.

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

Parameters

oldChar
The character to be replaced.
newChar
The character to replace the occurrences of the old character.

Return Value

A new string with all instances of old characters replaced with the new characters.

Remarks

The Replace method returns a string with all the places where the specified characters that needed replaceing with all the specified new characters.

See Also

String Class | String Members | System Namespace