combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / Replace Method / Replace(String,String) Method

The string to be replaced.

The string to replace all occurrences of oldValue.



In This Topic
    Replace(String,String) Method
    In This Topic

    Replaces all occurrences of Parameter oldValue with Parameter newValue.

    Syntax
    'Declaration
     
    
    Public Overloads Function Replace( _
       ByVal oldValue As String, _
       ByVal newValue As String _
    ) As Integer
    public int Replace( 
       string oldValue,
       string newValue
    )
    public:
    int Replace( 
       String^ oldValue,
       String^ newValue
    ) 

    Parameters

    oldValue

    The string to be replaced.

    newValue

    The string to replace all occurrences of oldValue.

    Return Value

    Count of replaced values.

    Remarks

    The event ReplaceHit is invoked by each hit in replacement operation.

    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also