Cuemon .NET Framework
Replace(String,String,String) Method

The System.String value to perform the replacement on.
The System.String value to be replaced.
The System.String value to replace all occurrences of oldValue.
Replaces all occurrences of oldValue in value, with newValue.
Syntax
'Declaration
 
Public Overloads Shared Function Replace( _
   ByVal value As String, _
   ByVal oldValue As String, _
   ByVal newValue As String _
) As String
public static string Replace( 
   string value,
   string oldValue,
   string newValue
)

Parameters

value
The System.String value to perform the replacement on.
oldValue
The System.String value to be replaced.
newValue
The System.String value to replace all occurrences of oldValue.

Return Value

A System.String equivalent to value but with all instances of oldValue replaced with newValue.
Remarks
This method performs an System.StringComparison.OrdinalIgnoreCase search to find oldValue.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StringUtility Class
StringUtility Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback