Replaces all occurrences of a specified string in this instance with another
specified string builder content.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static void Replace(
this StringBuilder sb,
string oldValue,
string newValue,
StringComparison comparisonType
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Sub Replace (
sb As StringBuilder,
oldValue As String,
newValue As String,
comparisonType As StringComparison
) |
Visual C++ |
---|
public:
[ExtensionAttribute]
static void Replace(
StringBuilder^ sb,
String^ oldValue,
String^ newValue,
StringComparison comparisonType
) |
F# |
---|
static member Replace :
sb : StringBuilder *
oldValue : string *
newValue : string *
comparisonType : StringComparison -> unit
|
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also