[This is preliminary documentation and is subject to change.]
Replaces the occurences of text in the string.
| C# | Visual Basic | Visual C++ |
public static string Replace( string str, string find, string text, int num )
Public Shared Function Replace ( _ str As String, _ find As String, _ text As String, _ num As Integer _ ) As String
public: static String^ Replace ( String^ str, String^ find, String^ text, int num )
- str (String)
- The string.
- find (String)
- The text to find.
- text (String)
- The replace text.
- num (Int32)
- The number of replacements to allow.