[This is preliminary documentation and is subject to change.]
Replaces the first occurence of text in the string.
| C# | Visual Basic | Visual C++ |
public static string ReplaceFirst( string str, string find, string text )
Public Shared Function ReplaceFirst ( _ str As String, _ find As String, _ text As String _ ) As String
public: static String^ ReplaceFirst ( String^ str, String^ find, String^ text )
- str (String)
- The string.
- find (String)
- The text to find.
- text (String)
- The replace text.