public static string Replace(
this string s,
string oldValue,
string? newValue,
StringComparison comparisonType
)<ExtensionAttribute>
Public Shared Function Replace (
s As String,
oldValue As String,
newValue As String,
comparisonType As StringComparison
) As Stringpublic:
[ExtensionAttribute]
static String^ Replace(
String^ s,
String^ oldValue,
String^ newValue,
StringComparison comparisonType
)[<ExtensionAttribute>]
static member Replace :
s : string *
oldValue : string *
newValue : string *
comparisonType : StringComparison -> string | NullReferenceException | s is null. |
| ArgumentNullException | oldValue is null. |
| ArgumentException | oldValue is Empty - or - comparisonType is not a defined value of the StringComparison enumeration. |